Skip to content

Instantly share code, notes, and snippets.

View wlaurance's full-sized avatar
🎯
Focusing

Will Laurance wlaurance

🎯
Focusing
View GitHub Profile
@wlaurance
wlaurance / coffeetojson.sh
Created February 29, 2012 21:47 — forked from aral/coffeetojson.sh
CoffeeScript to JSON script for OS X
coffee --print --compile $1.coffee | sed '1s/^.//' | sed 's/ });/}/' | sed "s/\([^ '\"].*[^ '\"]\):/\"\1\":/" > $1.json
@wlaurance
wlaurance / handlebars.linkify.js
Last active December 16, 2015 19:00 — forked from ryndel/handlebars.linkify.js
Change for ember
Ember.Handlebars.registerBoundHelper('linkify', function (text) {
text = text.replace(/(https?:\/\/\S+)/gi, function (s) {
return '<a href="' + s + '">' + s + '</a>';
});
text = text.replace(/(^|)@(\w+)/gi, function (s) {
return '<a href="http://twitter.com/' + s + '">' + s + '</a>';
});
text = text.replace(/(^|)#(\w+)/gi, function (s) {
brew install cmake
brew tap homebrew/science
brew install opencv --env=std
sudo cp /usr/local/Cellar/opencv/2.4.6.1/bin/* /usr/local/bin