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
# encoding: UTF-8 | |
require 'fiber' | |
require 'cinch' | |
SIDES_OF_A_DIE = 6 | |
class Staging | |
attr_accessor :locker | |
def initialize |
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 Person = function() { | |
// one at a time | |
this.key('fname', { default: 'John' }); | |
// many! | |
this.keys({ | |
fname: { default: 'John' } | |
}); | |
} |
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
-- Sample script to make an HTTP request with query parameters | |
local response = http.request { | |
url = 'http://www.random.org/integers/', | |
params = { | |
num=1, min=0, max=1, format='plain', | |
rnd='new', col=1, base=10 | |
} | |
} | |
if tonumber(response.content) == 0 then | |
return 'heads' |
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 Twitter = require('twitter'); | |
var analyze = require('Sentimental').analyze | |
var R = require('ramda') | |
var client = new Twitter({ | |
consumer_key: '', | |
consumer_secret: '', | |
access_token_key: '', | |
access_token_secret: '' | |
}); |
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
{ | |
"meta": { "theme": "onepage" }, | |
"awards": [], | |
"education": [ | |
{ | |
"area": "Film Scoring", | |
"courses": [], | |
"endDate": "2006-09-01", | |
"gpa": "", | |
"institution": "Berklee College of Music", |