This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"); | |
function start() { | |
function onRequest(request response) { | |
console.log("Request recieved"); | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.write("Hello World"); | |
response.end(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"); | |
function onRequest (request, response) { | |
console.log("Request Recieved"); | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.write("Hello World"); | |
response.end(); | |
} | |
http.createServer(onRequest).listen(8888); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function execute (someFunction, value) { | |
someFunction(value); | |
} | |
execute(function(word) { consnole.log (word) }, "hello"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function execute (someFunction, value) { | |
someFunction(value); | |
} | |
execute(function(word) { consnole.log (word) }, "hello"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function say(word) { | |
console.log(word); | |
} | |
function execute(someFunction, value) { | |
someFunction(value); | |
} | |
execute(say, "Hello"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function increment(start, timesToIncrement) { | |
var counter = 0; | |
while( counter !== timesToIncrement) { | |
start++ | |
} | |
return start; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh_user = "USERNAME" | |
remote_path = "PATH TO THEME" | |
namespace :styles do | |
desc "Clear styles" | |
task :clear do | |
puts "*** Clearing styles ***" | |
system "rm -Rfv styles.css" | |
end | |
desc "Generate styles" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh_user = "[email protected]" # for rsync deployment | |
remote_root = "~/path/to/remote/" # for rsync deployment | |
namespace :styles do | |
desc "Clear styles" | |
task :clear do | |
puts "*** Clearing styles ***" | |
system "rm -Rfv css/*" | |
end | |
desc "Generate styles" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# virtualenv aliases | |
# http://blog.doughellmann.com/2010/01/virtualenvwrapper-tips-and-tricks.html | |
alias v='workon' | |
alias v.deactivate='deactivate' | |
alias v.mk='mkvirtualenv --no-site-packages' | |
alias v.mk_withsitepackages='mkvirtualenv' | |
alias v.rm='rmvirtualenv' | |
alias v.switch='workon' | |
alias v.add2virtualenv='add2virtualenv' | |
alias v.cdsitepackages='cdsitepackages' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: rails new APP_NAME -m http://gist.github.com/627198.txt -TJ | |
# the -T drops test-unit and the -J drops prototype | |
gem "pg" | |
gem "omniauth" | |
gem "paperclip" | |
gem "haml" | |
gem "sass" |