This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple script which runs code when a file is modified | |
# | |
# You will have to install pyinotify | |
# | |
# Run with the directory to watch | |
# eg. python autobuild.py ./ | |
# currently hardcoded to use | |
# | |
# (c) 2009, Nikhil Marathe <[email protected]> | |
# Licensed under the MIT License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startshape sun | |
rule sun { | |
sq { } | |
36* { r 10 } sq { } | |
} | |
rule sq { | |
CIRCLE { hue 200 saturation 150 } | |
sq { x 1 y 1 s 0.8 brightness 0.3 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mclarens Bar: Redis based Instant Messaging | |
* Nikhil Marathe - 22/04/2010 | |
* A simple example of an IM client implemented using | |
* Redis PUB/SUB commands so that all the communication | |
* is offloaded to Redis, and the node.js code only | |
* handles command interpretation,presentation and subscribing. | |
* | |
* Requires redis-node-client and a recent version of Redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The language list was generated using the following lines of Python | |
from pygments.lexers import get_all_lexers | |
import json | |
xs = [ (x[0], i) for i, x, _, _ in get_all_lexers() ] | |
xs.sort() | |
f = open('file', 'w') | |
json.dump(xs, f) | |
NewerOlder