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
[sudo] gem install eventmachine em-dir-watcher jammit | |
hacky implementation requires jamsession.rb in route of project then | |
ruby jamsession.rb |
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(){ | |
window.TMPL = window.TMPL || {}; | |
window.TMPL['application/item'] = Haml('%strong=application.get(\'name\')'); | |
window.TMPL['application/list_item'] = Haml('= application.get(\'name\')'); | |
window.TMPL['application/manage'] = Haml('%h1 Manage your Applications%ul.commands %li %a{href:"#manage/applications/new"} Add an Application%h2 Applications%ul.applications'); | |
window.TMPL['application/new'] = Haml('%h1 New Application%form %fieldset %input{name:"application[name]"} %button{type:"submit"} Create Application'); | |
window.TMPL['application/selector_item'] = Haml('%strong= application.get(\'name\')'); | |
window.TMPL['event/index'] = Haml('%h1 Event Feed%h2 Events%ul.events'); | |
window.TMPL['event/item'] = Haml('%h3 = event_item.get(\'type\')%h4 = event_item.get(\'time\')%p = event_item.get(\'description\')'); |
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
{ | |
'model': 'Application', | |
'method': 'index' | |
} |
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
kids = { | |
brother: { | |
name: "Max", | |
age: 11 | |
}, | |
sister: { | |
name: "Ida", | |
age: 9 | |
} | |
}; |
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
kids = | |
brother: | |
name: "Max" | |
age: 11 | |
sister: | |
name: "Ida" | |
age: 9 |
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
list = [1,2,3,4,5] | |
alert(num +=1 for num in list) |
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
MacBookPro:~ deedubs$ ping www.apple.com | |
PING e3191.c.akamaiedge.net (184.24.189.15): 56 data bytes | |
64 bytes from 184.24.189.15: icmp_seq=0 ttl=49 time=37.954 ms | |
64 bytes from 184.24.189.15: icmp_seq=1 ttl=49 time=38.681 ms | |
64 bytes from 184.24.189.15: icmp_seq=2 ttl=49 time=39.431 ms | |
64 bytes from 184.24.189.15: icmp_seq=3 ttl=49 time=40.324 ms | |
64 bytes from 184.24.189.15: icmp_seq=4 ttl=49 time=38.314 ms | |
64 bytes from 184.24.189.15: icmp_seq=5 ttl=49 time=39.137 ms | |
64 bytes from 184.24.189.15: icmp_seq=6 ttl=49 time=39.868 ms | |
64 bytes from 184.24.189.15: icmp_seq=7 ttl=49 time=38.031 ms |
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
// division-by-zero-test.js | |
var vows = require('vows'), | |
assert = require('assert'); | |
// Create a Test Suite | |
vows.describe('Division by Zero').addBatch({ | |
'when dividing a number by zero': { | |
topic: function () { return 42 / 0 }, |
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
vows = require 'vows' | |
assert = require 'assert' | |
vows | |
.describe('Division by Zero') | |
.addBatch | |
'when dividing a number by zero': | |
topic: -> 42/ 0 |
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
docco: app/controllers/home.coffee -> docs/home.html | |
docco: app/controllers/index.coffee -> docs/index.html | |
docco: app/helpers/index.coffee -> docs/index.html | |
docco: app/models/index.coffee -> docs/index.html | |
docco: app/models/mission.coffee -> docs/mission.html | |
docco: app/models/user.coffee -> docs/user.html |