Skip to content

Instantly share code, notes, and snippets.

View deedubs's full-sized avatar
:shipit:
kustomize build all-the-things | kubectl apply -f -

Dan Williams deedubs

:shipit:
kustomize build all-the-things | kubectl apply -f -
View GitHub Profile
[sudo] gem install eventmachine em-dir-watcher jammit
hacky implementation requires jamsession.rb in route of project then
ruby jamsession.rb
(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\')');
{
'model': 'Application',
'method': 'index'
}
kids = {
brother: {
name: "Max",
age: 11
},
sister: {
name: "Ida",
age: 9
}
};
kids =
brother:
name: "Max"
age: 11
sister:
name: "Ida"
age: 9
list = [1,2,3,4,5]
alert(num +=1 for num in list)
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
// 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 },
vows = require 'vows'
assert = require 'assert'
vows
.describe('Division by Zero')
.addBatch
'when dividing a number by zero':
topic: -> 42/ 0
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