🏳️🌈
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
#! /bin/sh | |
git checkout master | |
cp -R lib deploy/production.media | |
cp -R media deploy/production.media | |
cp .gitignore deploy/production.media | |
cp .slugignore deploy/production.media | |
cp package.json deploy/production.media | |
cp lib/epa/shared/media.procfile deploy/production.media/Procfile |
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
function foo(a, b, c){ | |
if (arguments.length === 2){ | |
a = ""; | |
b = arguments[0]; | |
c = arguments[1]; | |
} | |
console.log("a:", a); | |
console.log("b:", b); | |
console.log("c:", c); |
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
{ | |
"dependencies": { | |
"jade": "1.3", | |
} | |
} |
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 jobTriggerConfig = [ | |
{ | |
slug: "test-job", | |
dependsOn: [ | |
{ | |
trigger: "test-trigger", | |
} | |
] | |
}, |
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
$ dpkg -s openssl |
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 Events = require("events"); | |
var util = require("util"); | |
function ScheduleItem(){ | |
// ... | |
} | |
util.inherits(ScheduleItem, Events.EventEmitter); |
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 Scheduling = require("Scheduling"); | |
describe("when running a schedule", function(){ | |
var schedule, mc; | |
beforeEach(function(){ | |
schedule = new Scheduling.Schedule(); | |
schedule.build([]); | |
spyOn(schedule, "on"); |
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
range: bytes=0-100 |
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
mixin template | |
script(id!=attributes.id, type="text/html") | |
if block | |
block |
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 MyView = Backbone.View.extend({ | |
initialize: function(){ | |
// manually bind event | |
this.listenTo(this.model, "some:event", this.modelEvent); | |
}, | |
modelEvent: function(a, b){ | |
// manually forward event | |
this.trigger("some:event", a, b) |
OlderNewer