This file contains 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
Vagrant.configure("2") do |config| | |
#provider blocks | |
config.vm.provider :virtualbox do |config, override| | |
override.vm.box = "opscode-ubuntu-12.04" | |
override.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box" | |
config.vm.network :private_network, ip: "192.168.56.10" | |
config.customize ["modifyvm", :id, "--memory", 512] | |
end |
This file contains 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
Vagrant.configure("2") do |config| | |
#provider blocks | |
config.vm.provider :virtualbox do |config, override| | |
override.vm.box = "opscode-ubuntu-12.04" | |
override.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box" | |
config.vm.network :private_network, ip: "192.168.56.11" | |
config.customize ["modifyvm", :id, "--memory", 1024] | |
end |
This file contains 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
ifconfig | grep 'inet' | cut -d: -f2 | awk '{ print $2}' |
This file contains 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
Show hidden characters
{ | |
"predef": [ | |
], | |
"node": true, | |
"bitwise" : true, | |
"curly" : true, | |
"eqeqeq" : true, | |
"forin" : true, |
This file contains 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 demethodise = function (fn) { | |
var curry = [].slice.call(arguments, 1); | |
return function () { | |
var args = curry.concat([].slice.call(arguments, 1)); | |
return fn.apply(arguments[0], args); | |
}; | |
}; |
This file contains 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
'use strict'; | |
var http = require('http'), | |
fs = require('fs'); | |
var filePath = './feeds/feed.json'; | |
http.createServer(function (req, res) { | |
var readStream; |
This file contains 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() { | |
var Bear = function(porridge, chair, bed) { | |
this.porridge = porridge; | |
this.chair = chair; | |
this.bed = bed; | |
return this; | |
}; |
This file contains 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
doctype html | |
head | |
link(rel='stylesheet', href='css/screen.css') | |
html | |
body | |
article | |
header | |
h1 My Schema | |
span.container { | |
each property, name in properties |
This file contains 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 args() { | |
if (!arguments['0']['2']) { | |
arguments['0']['2'] = arguments['0']['1']; | |
} | |
return arguments; | |
} | |
function wrap() { |
This file contains 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 x, // Give me a value for it to be twoo | |
method = function (callback) { | |
callback(); | |
}; | |
var twoo = function () { | |
console.log('twoo'); | |
}; | |
var fawlse = function () { |
OlderNewer