Skip to content

Instantly share code, notes, and snippets.

View phred's full-sized avatar
🌴
On vacation

Fred Alger phred

🌴
On vacation
View GitHub Profile
//
// Output a Couch view as CSV, fields ordered per the 'fields' local variable.
// This is designed for use with FoxyCouch, the RESTful Foxycart order manager.
//
// To install in a FoxyCouch[1] instance, use CouchApp to 'pull' the design documents
// and then make a 'lists' directory inside 'manager_screen'; then put the contents
// of this into 'orders_as_csv.js'. Then do a 'couchapp push'.
//
// (Yeah, I realize now that I should move the rest of FoxyCouch to CouchApp, because
// it rocks.)
#!/bin/sh
# Wrapper for IronPython on the Mac. Install Mono from here:
# http://www.go-mono.com/mono-downloads/download.html
#
# Thanks to this Japanese article; code truly is the universal language:
# http://textdirected.googlepages.com/IronPythonUnderMacOSXmonoJ.html
#
exec /Library/Frameworks/Mono.framework/Versions/Current/bin/mono /Library/Frameworks/Mono.framework/Versions/Current/lib/IPCE/ipy/ipy.exe "$@"
@phred
phred / sketch.py
Created April 22, 2009 03:58
Processing+jython color cube
"""
jython version of http://hipstersinc.com/blog/2007/5/16/jruby_processingorg_howto/
Spinning color cube controled by mouse motion.
1. Install Jython
2. Add Processing's core.jar to CLASSPATH: export CLASSPATH=/Applications/Processing.app/Contents/Resources/Java/core.jar
3. ~/jython2.5b3/bin/jython sketch.py
"""