Skip to content

Instantly share code, notes, and snippets.

View yannickcr's full-sized avatar

Yannick Croissant yannickcr

View GitHub Profile
@yannickcr
yannickcr / make-js.sh
Created March 25, 2011 00:49
A simple shell script to loop through your javascripts and give them to sprocket and uglifyjs
SOURCEPATH=/path/to/javascripts/sources
BUILDPATH=/path/to/compiled/javascripts
NODEPATH=/path/to/node
UGLIFYPATH=/path/to/uglifyjs
SPROCKETPATH=/path/to/sprocketize
cd $SOURCEPATH
for f in *.js;
do
@yannickcr
yannickcr / String.SHA1.js
Created November 23, 2010 23:10
Hash a string with the SHA-1 algorithm (using MooTools)
/*
---
script: String.SHA1.js
description: Hash a string with the SHA-1 algorithm
license: MIT-style license.
authors: Yannick Croissant