Skip to content

Instantly share code, notes, and snippets.

View goloroden's full-sized avatar
💭
The best way to predict the future is to invent it.

Golo Roden goloroden

💭
The best way to predict the future is to invent it.
View GitHub Profile
@goloroden
goloroden / app.coffee
Created July 10, 2011 18:17
EBCs in CoffeeScript
# Resolve dependencies.
EventEmitter = (require 'events').EventEmitter;
# Define EBCs.
class HelloWorldGenerator extends EventEmitter
generate: ->
this.emit 'generated', 'Hello World!'
class UpperCaseTransformer extends EventEmitter
transform: (text) ->
@goloroden
goloroden / gist:1485958
Created December 16, 2011 12:59
Combining Funcs
Func<User, bool> whereStatus = u => u.Status == status;
Func<User, bool> whereQuery =
u => u.Lastname.Contains(q) || u.Firstname.Contains(q) || u.UserId.Contains(q);
Func<User, bool> where = ...?
// What's requires: where = whereStatus && whereQuery
{
"name": "de.goloroden.www",
"version": "0.0.48",
"private": true,
"dependencies": {
"express": "2.4.7",
"stylus": ">= 0.0.1",
"jade": ">= 0.0.1",
"lingua": ">= 0.1.2",
"node-force-domain": ">= 0.0.1"
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ jitsu deploy
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Authenticated as goloroden
info: Analyzing your application dependencies in app.js
warn: Creating new snapshot for version 0.0.49
info: Done creating snapshot 0.0.49
info: Updating application de.goloroden.www
info: Activating snapshot 0.0.49 for de.goloroden.www
info: Listing snapshots for de.goloroden.www
data: name created md5
data: 0.0.1 2011/10/21 22:6:19 cfc5778ebdb860fc1acc458285b4541b
data: 0.0.2 2011/10/21 22:8:18 6d71df0959bbef4347d3bead6b4fe68a
data: 0.0.3 2011/10/21 22:19:38 ea46a1ef5f9e267047d971d3d5a186f6
data: 0.0.4 2011/10/22 11:34:40 ba0870f420f97f5e16ce268d26b84dfc
data: 0.0.5 2011/10/22 11:36:23 2a195628c2c896fac0ca463361ffa02f
data: 0.0.6 2011/10/22 11:37:7 2734a311379ab22d26dc01624042ea2d
data: 0.0.7 2011/10/22 11:37:28 cdb160902e79ecd9c3cfde17230eff3e
data: 0.0.8 2011/10/22 12:4:34 62d7846fda166c096636036185c600ec
data: 0.0.47 2011/12/24 13:0:42 b293509778a2ec6418820b80289b6c90
data: 0.0.48 2011/12/24 13:1:30 ef9a7c40a8a2603a21ad715967368c3f
data: 0.0.49 2011/12/24 13:8:16 c324d48650751e3616fd07accd0970a7
data: 0.0.50 2011/12/24 13:13:59 b7325a8de5ed7fc557d528773d64de27
data: 0.0.51 2011/12/24 13:15:8 9f9f6d66da940f96374199d10c804a52
data: 0.0.52 2011/12/24 13:18:2 c85cc55db636b5f9e4e2349d9d3fc865
data: 0.0.53 2011/12/24 13:20:34 cddc726f9184b9f3495aa87f537d5508
prompt: Snapshot Name: 0.0.53
error: Error running command snapshots activate
error: Nodejitsu Error (500): Internal Server Error
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ jitsu snapshots activate
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command snapshots activate
info: Authenticated as goloroden
info: Listing snapshots for de.goloroden.www
data: name created md5
data: 0.0.1 2011/10/21 22:6:19 cfc5778ebdb860fc1acc458285b4541b
data: 0.0.2 2011/10/21 22:8:18 6d71df0959bbef4347d3bead6b4fe68a
data: 0.0.3 2011/10/21 22:19:38 ea46a1ef5f9e267047d971d3d5a186f6
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ jitsu apps destroy de.goloroden.www
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command apps destroy de.goloroden.www
info: Authenticated as goloroden
info: Destroying app goloroden/de.goloroden.www
info: Nodejitsu ok
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ nano package.json
golo@Eisbaer:~/Projekte/de.goloroden.www/website$ jitsu deploy
info: Welcome to Nodejitsu
{
"name": "de.goloroden.core",
"version": "0.0.16",
"dependencies": {
"express": "2.4.7",
"stylus": ">= 0.0.1",
"jade": ">= 0.0.1",
"node-force-domain": ">= 0.0.1"
},
"domains": [
golo@Eisbaer:~/Projekte/de.goloroden.core/website$ jitsu snapshots activate
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command snapshots activate
info: Authenticated as goloroden
info: Listing snapshots for de.goloroden.core
data: name created md5
data: 0.0.16 2011/12/25 22:52:17 6204fb77f76055ce45d85eeb50ad8061
prompt: Snapshot Name: 0.0.16
error: Error running command snapshots activate