Skip to content

Instantly share code, notes, and snippets.

@alexbeletsky
alexbeletsky / gist:1836711
Created February 15, 2012 15:32
Sublime Text 2 Build System for .NET solutions
{
"shell": true,
"working_dir": "${project_path:${folder}}",
"cmd": ["%WINDIR%\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild", "${project_base_name}.sln"]
}
@ybogdanov
ybogdanov / getUserSummary_nodejs_async.js
Created August 20, 2011 13:19
nodejs callbackDriven vs node-async vs node-sync
function getUserSummary(userId, callback)
{
async.parallel({
user : function(callback) {
db.users.findUserById(userId, callback)
},
tweets : function(callback) {
db.users.getTweets(userId, callback)
@demonbane
demonbane / makeapp.sh
Created July 5, 2011 20:05
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"