Copy these files to your ~/Library/Application Support/Notational Velocity/ folder
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
#git cheat sheet
##$ git clone Clone into a custom named folder
git clone [email protected]/username/repository.git foldername
Clone the last five commits
git clone --depth=5 [email protected]/username/repository.git
| import gifAnimation.*; | |
| GifMaker gifExport; | |
| int frames = 0; | |
| int totalFrames = 120; | |
| public void setup() { | |
| smooth(); | |
| size(400, 400); |
| var collectionNames = db.getCollectionNames(), stats = []; | |
| collectionNames.forEach(function (n) { stats.push(db[n].stats()); }); | |
| stats = stats.sort(function(a, b) { return b['size'] - a['size']; }); | |
| for (var c in stats) { print(stats[c]['ns'] + ": " + stats[c]['size'] + " (" + stats[c]['storageSize'] + ")"); } |
This gist creates an init.d script to automatically run Node-RED at boot time.
To run it as a single step you can cut paste the following single line command
sudo wget -O /tmp/download https://gist.github.com/bigmonkeyboy/9962293/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/init.d && sudo chmod 755 /etc/init.d/nodered && sudo update-rc.d nodered defaults
or click right-click "save as" this link - But please read the script first and satisfy yourself it's safe to execute in your environment...
| /* | |
| * Midikeys.js | |
| * > Turn your keyboard into a midi keyboard, compatible with the Web MIDI API. | |
| * Copyright 2012 Nick Thompson | |
| * MIT License | |
| * https://gist.github.com/3995530 | |
| */ | |
| (function (window, document, undefined) { | |
| // Keycode to MIDI note values |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/codegangsta/negroni" | |
| "github.com/gorilla/mux" | |
| "log" | |
| "net/http" | |
| ) |