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
info: Welcome to Nodejitsu nicohvi | |
info: jitsu v0.13.14, node v0.10.15 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in coffee marvin.coffee | |
debug: { method: 'GET', | |
debug: uri: 'https://api.nodejitsu.com/apps/nicohvi/marvin', | |
debug: headers: | |
debug: { Authorization: '*****************************************************************', | |
debug: 'Content-Type': 'application/json', |
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
ReactTransition = React.addons.CSSTransitionGroup | |
Component = React.createClass | |
displayName: 'component' | |
render: -> | |
section className: 'component', | |
ReactTransition transitionName: 'fadeIn', | |
SubComponent() |
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 whosTopDog(dogs, comparison) { | |
for (var i=0; i < dogs.length; i++) comparison(dogs[i]); | |
} | |
whosTopDog(['ice cube', '50 cent', 'snoop'], function(dog) { | |
if(dog === 'snoop dog') { | |
console.log(dog+ ' is top deg.'); | |
} | |
else { | |
console.log(dog+ ' is a bitch.'); |
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
while true do | |
p 'You done fucked up son' | |
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
Given /^the person "(.*?)" should not be "(*.?)"$/ |
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
require 'haml' | |
require 'coffee-script' | |
@root = Dir.pwd | |
@coffee = "#{@root}/_coffee" | |
@haml = "#{@root}/_haml" | |
def compile_coffeescript | |
target, javascript = "#{@root}/public/application.js", '' # 1 | |
Dir.glob("#{@coffee}/*.coffee") do |coffeescript| # 2 |
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
require 'listen' | |
require 'haml' | |
require 'coffee-script' | |
require 'uglifier' | |
@root = Dir.pwd | |
@haml = "#{@root}/_haml" | |
@coffee = "#{@root}/_coffee" | |
def compile_haml(file) |
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
require 'minitest/autorun' | |
require 'byebug' | |
def stack_machine(string) | |
result = [] | |
numbers = [] | |
string.split.each do |token| | |
if /(\d)/.match(token) | |
numbers << Integer(token) |
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 responseMetastream = requestStream | |
.map(function(requestUrl) { | |
return Rx.Observable.fromPromise(jQuery.getJSON(requestUrl)); | |
}); |
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
# variables | |
movieButton = $('#movie-button') | |
errorField = $('.error') | |
movieField = $('.movies') | |
movieTemplate = Handlebars.compile($('#movie-template').html()) | |
# functions | |
createClickStream = -> | |
movies = $('.movie') | |
clickStream = Rx.Observable.fromEvent movies, 'click' |
OlderNewer