Skip to content

Instantly share code, notes, and snippets.

View praseodym's full-sized avatar
:shipit:
ship it

Mark Janssen praseodym

:shipit:
ship it
View GitHub Profile
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code
@praseodym
praseodym / quickAndDirtyNewsArticle
Created November 2, 2011 15:37 — forked from SpacyRicochet/quickAndDirtyNewsArticle.html
Quick and dirty html template for news articles in iPad app.
<!DOCTYPE html>
<style type="text/css">
p.clear {
clear:both;
}
</style>
<div style="float: left;">
<img class="newsPhoto" src="http://www.iphoneplatform.nl/upload/1238413896apple-logo-black-xsan.jpg" width="250" height="100">
<br>
<img src="http://www.iphoneplatform.nl/upload/1238413896apple-logo-black-xsan.jpg" width="60" height="60">