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') | |
http.createServer(function (req,res) { | |
res.writeHead(200, {'Content-Type':'text/plain'}); | |
res.end('Hello World! \n'); | |
}).listen(1337,"127.0.0.1"); | |
console.log('Server running at http://127.0.0.1:1337//'); |
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
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
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
class Model < ParentModel | |
include Foo::Bar | |
extend Bar::Baz | |
acts_as_authentic | |
dsl_specific_flags | |
module InternalModule | |
... | |
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
# ____ _ _ ____ _ | |
# | _ \ ___ | |__ ___ | |_ | _ \ ___ ___| | __ | |
# | |_) / _ \| '_ \ / _ \| __| | |_) / _ \ / __| |/ / | |
# | _ < (_) | |_) | (_) | |_ | _ < (_) | (__| < | |
# |_| \_\___/|_.__/ \___/ \__| |_| \_\___/ \___|_|\_\ | |
# | |
# 1. http://en.wikipedia.org/wiki/Special:Random | |
# The first article title on the page is the name of your band. | |
# | |
# 2. www.quotationspage.com/random.php3 |
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
http_path = "/" | |
http_stylesheets_path = "/stylesheets" | |
http_images_path = "/images" | |
http_javascripts_path = "/javascripts" | |
sass_dir = "sass" | |
css_dir = "public/stylesheets" | |
images_dir = "public/images" | |
javascripts_dir = "public/javascripts" |
NewerOlder