Skip to content

Instantly share code, notes, and snippets.

@pespes
pespes / Node grep
Created June 18, 2013 18:32
Find node processes running on the server
ps aux | grep node
@pespes
pespes / gist:1272618
Created October 8, 2011 17:51
compile from Clojurescript repl
(require '[cljs.closure :as cljsc])
(doc cljsc/build)
-------------------------
cljs.closure/build
([source opts])
Given a source which can be compiled, produce runnable JavaScript.
$ bin/cljsc hello.cljs '{:optimizations :advanced}' > hello.js
@pespes
pespes / coffee-stained-paper.js
Created September 9, 2011 13:48 — forked from mnmly/coffee-stained-paper.js
A tiny shim for Paper.js/CoffeeScript prototyping
window.stainedPaper = function (func) {
var canvas = document.createElement('canvas');
document.body.appendChild(canvas);
paper.setup(canvas);
func.call(paper);
};
@pespes
pespes / compilecoffee.sh
Created February 9, 2011 20:32
Compile a directory of coffeescript files
coffee --watch --compile javascript/*.coffee
@pespes
pespes / SimpleHTTPServer.sh
Created February 9, 2011 20:25
Serve a directory at localhost - super handy for prototyping
python -m SimpleHTTPServer
# Path Following
# Daniel Shiffman <http:#www.shiffman.net>
# The Nature of Code, Spring 2009
# Boid class
class Boid
include Processing::Proxy
include Math
(ns parsing2
(:use clojure.contrib.str-utils)
;(:use com.ashafa.clutch)
(:import java.io.File
java.util.Date
java.text.DateFormat
jxl.Workbook
jxl.Sheet
jxl.Range
jxl.Cell