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
# Box https://github.com/phusion/open-vagrant-boxes | |
Vagrant.configure("2") do |config| | |
config.vm.box = "phusion-open-ubuntu-12.04-amd64" | |
# This is a built box that builds boxes | |
config.vm.provision "docker", | |
images: ["phusion/baseimage"] | |
end |
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 express = require('express'); | |
var app = express(); | |
app.get('/', function (req, res) { | |
res.send('Express.js Hello world'); | |
}); | |
app.listen(8000); |
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
use Test::More; | |
use strict; | |
plan (($ENV{TESTING_APP_ID} and $ENV{TESTING_SECRET}) ? (tests => 1) : (skip_all => 'TESTING_APP_ID and TESTING_SECRET both need to be set')); | |
use_ok 'Dancer'; |
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 gulp = require('gulp'), livereload = require('gulp-livereload'), | |
gutil = require('gulp-util'), | |
dest = 'build'; | |
gulp.task('staticsvr', function(next) { | |
var staticS = require('node-static'), | |
server = new staticS.Server('./' + dest), | |
port = 8000; | |
require('http').createServer(function (request, response) { | |
request.addListener('end', function () { |
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() { | |
var Ap = Array.prototype; | |
var slice = Ap.slice; | |
var Fp = Function.prototype; | |
if (!Fp.bind) { | |
// PhantomJS doesn't support Function.prototype.bind natively, so | |
// polyfill it whenever this module is required. | |
Fp.bind = function(context) { |
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
/** @jsx React.DOM */ | |
'use strict'; | |
var Form = require('newforms'); | |
var React = require('react'); | |
module.exports = React.createClass({ | |
propTypes: { | |
form: React.PropTypes.object, | |
choices: React.PropTypes.array, |
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 self = this; | |
var setupCanvas = function() { | |
var w = this.naturalWidth, | |
h = this.naturalHeight, | |
aspectRatio = w / h; | |
var scaled = (h != this.naturalHeight || w != this.naturalWidth); | |
var sixteenByNine = 16 / 9; |
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
diff --git a/campaign.json b/campaign.json | |
index e69de29..dbe4cff 100644 | |
--- a/campaign.json | |
+++ b/campaign.json | |
@@ -0,0 +1,34 @@ | |
+{ | |
+ "campaign": { | |
+ "id": 1, | |
+ "guid": "CMP12345", | |
+ "title": "Senior Prank: Dumpsville College", |
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 webpack = require('webpack'), | |
bourbon = require('node-bourbon').includePaths; | |
var envPlugin = new webpack.DefinePlugin({ | |
'process.env': { | |
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development') | |
} | |
}); | |
module.exports = { |
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
// Karma configuration | |
// Generated on Tue Sep 16 2014 09:05:25 GMT-0700 (PDT) | |
var webpackConfig = require('./webpack.config'); | |
webpackConfig.watch = true; | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) |