Fork me on GitHub
  1. Colored Output in Console with Python

    Playing around with ANSI in a color capable terminal.

    #!/usr/bin/env python
    import sys
    
    BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
    
    #following from Python cookbook, #475186
    def has_colours(stream):
        if not hasattr(stream, "isatty"):
            return False
        if not stream.isatty():
            return False # auto color only on …
    read more

    There are comments.

  2. Static build of Cairo and librsvg

    Why ?

    • Convert SVG files to PDF or PNG, with full Unicode support (right-to-left languages), transparency, gradients, PDF image compression, ...
    • Cairo and librsvg are the best in town.
    • Cairo and librsvg are very modern libraries which became famous only in the past 3 years. Thus, GNU/Linux distributions do not always …
    read more

    There are comments.

« Page 11 / 11

social