1
https://gist.github.com/3144842
2
https://gist.github.com/3144998
3
https://gist.github.com/3145089
4
https://gist.github.com/3145226
5
https://gist.github.com/3145525
6
https://gist.github.com/3145551
7
https://gist.github.com/3145587
8
https://gist.github.com/3145608
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
FROM debian:wheezy | |
MAINTAINER Sven Lito <me@svenlito.com> | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV COUCHDB_VERSION 1.6.1 | |
RUN groupadd -r couchdb && useradd -d /var/lib/couchdb -g couchdb couchdb | |
RUN echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list |
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/bash | |
set -e | |
# Create this many swarm workers | |
export N_WORKERS=1 | |
function create_node() { | |
docker-machine --debug create \ | |
-d virtualbox \ |
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 path = require('path'); | |
var webpack = require('webpack'); | |
var pkg = require(path.resolve('package.json')); | |
var vendorDeps = Object.keys(pkg.dependencies).map(function (item) { | |
if (item) { return item; } | |
}); | |
vendorDeps.push('react/addons'); |
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 cors = { | |
origin: ['http://localhost:4444'], | |
isOriginExposed: true, | |
headers: ['Authorization', 'Content-Type', 'If-None-Match', 'access-control-allow-headers'], | |
credentials: true | |
}; | |
pack.server(server_config.www_port, { | |
labels: ['web'], | |
cors: cors |
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
// | |
// # layout.index | |
// | |
define([ | |
'helpers/namespace', | |
'./controllers/index' | |
], | |
function (app, LayoutController) { |
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 fs = require('fs'), | |
http = require('http'), | |
path = require('path'), | |
https = require('https'); | |
var express = require('express'); | |
var app = express(), | |
server, ca, conf; |
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
// | |
// #main | |
// | |
require.config({ | |
paths: { | |
jquery: 'libs/jquery/jquery-min', | |
handlebars: 'libs/handlebars/handlebars', | |
underscore: 'libs/underscore/underscore-min', | |
backbone: 'libs/backbone/backbone-optamd3-min', |
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
dojo.provide("dbp._Handlebars"); | |
dojo.require("dijit._TemplatedMixin"); | |
(function(d) { | |
// lib/handlebars/parser.js | |
/* Jison generated parser */ | |
var handlebars = (function(){ | |
var parser = {trace: function trace() { }, | |
yy: {}, | |
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"param":27,"STRING":28,"INTEGER":29,"BOOLEAN":30,"hashSegments":31,"hashSegment":32,"ID":33,"EQUALS":34,"pathSegments":35,"SEP":36,"$accept":0,"$end":1}, |
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 request(callback) { | |
var http, options; | |
http = require("http"); | |
options = { | |
host: "api.outofme.de", | |
port: 80, | |
path: "/graphics", | |
method: "GET" | |
}; |