Coder Social home page Coder Social logo

ansiparse's Introduction

Hi, I'm Maciej

pronouciation / he/him

I'm a site reliability engineer, a maker and a all-around hacker.

Hobbies & Projects

Programmers' CADs

OpenSCAD and (more recently) CadQuery are my CAD tools of choice.

catchnhole: an ergonomic way to create nutcatches and bolt holes in OpenSCAD
next-bolt: putting some more Computer Assist into your bolt length choices
...and a ton of other OpenSCAD libraries

3D printers

The Swoon: a WIP fork of the FoldaRap project intended at upgrading the design with belted Z (โœ“), linear rails and EVA 3.0 compatibility
Resin curing chamber: parametric resin curing chamber using UV LED strips
Lighting (top, side), camera & feet setup for my Prusa i3 MK3s+

Model rocketry

Trying to make model rocketry more accessible and DYI:

Launch Controller 0: very simple model rocket launch controller
Launch Pad 1: launch pad for model rocket based around 2020 aluminium extrusions
SV Entire Thing: small, fully 3D-printed model rocket hull for testing designs

Electronics

Rapiscope: rack and pinion-adjustable, rapidly 3D-printable, Raspberry Pi-based digital microscope for soldering

Mechanical keyboards

  • qmk_rc and qmkrcd - remote control for your QMK-powered keyboard

SRE/build engineering/...

ansiparse's People

Contributors

backspace avatar mmalecki avatar sarahhodne avatar seldaek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ansiparse's Issues

wrong parse result

I get the wrong result with the following string

str = "[1] pry(main)> (p = \u001B[1;34m\u001B[4mPost\u001B[0m.find(\u001B[32m\u001B[1;32m"\u001B[0m\u001B[32mlala\u001B[1;32m"\u001B[0m\u001B[32m\u001B[0m))&&\u001B[1;36mnil\u001B[0m\n"

The text is:

pry(main)> (p = Post.find("lala"))&&nil

As you can see before "))&&" there is [0m, so these 4 characters should be without any style. However the parser returns:

foreground: "green"
text: "))&&"

Thanks for your work btw, useful script :)

Erase line

I am not sure of the exact code, but this node test is having the 'erase line' issue.

Also, as a side note, there seem to be two codes not being parsed in this test : \x1b[33;01m and \x1b[0m

Let me know how I can help.

J

Bug on parse empty color text

Consider parse the text: \u001b[33m\u001b[mText.

It would be:

{
      foreground: 'yellow', text: 'Text'
}

but it sould be:

{ text: 'Text' }

The code need a bit change:

        if (matchingText != null) {
          state.text = matchingText
          if (matchingText) {
            result.push(state)
          }
          state = {}
          matchingText = ''
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.