I hereby claim:
- I am romanmt on github.
- I am mattroman (https://keybase.io/mattroman) on keybase.
- I have a public key whose fingerprint is 1E10 530A 1D67 F90B 61F4 937B 7B5C 57DA 7723 F2C3
To claim this, I am signing this object:
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| upstream elasticsearch { | |
| server 10.0.0.1:9200; | |
| server 10.0.0.2:9200; | |
| server 10.0.0.3:9200; | |
| keepalive 64; | |
| } | |
| server { | |
| listen 9200; | |
| server_name search.proxy; |
| echo"{\"ho\":\"hey\"}" | pp |
| 1 namespace :dm do | |
| 2 task :migrate => :environment do | |
| 3 gem "dm-migrations", "=0.9.6" | |
| 4 require "migration_runner" | |
| 5 Dir[File.join(Rails.root, "db", "migrate", "*")].each {|f| require f} | |
| 6 migrate_up! | |
| 7 end | |
| 8 end | |
I hereby claim:
To claim this, I am signing this object:
| var mongoose = require('mongoose@1.1.11') | |
| , express = require('express@2.2.0') | |
| , db = mongoose.connect('mongodb://localhost/cleveland'); | |
| var app = module.exports = express.createServer( ); | |
| // For testing. Shut down the DB connection so node can exit | |
| app.on('close', function(){ | |
| console.log('Shutting down!'); | |
| db.disconnect(); |
| var should = require('should'); | |
| var sinon = require('sinon'); | |
| exports.it = function(exports) { | |
| return function(statement, callback) { | |
| exports['test: ' + statement] = function(test, assert) { | |
| var sandbox = sinon.sandbox.create(); | |
| sandbox.finish = function() { | |
| sandbox.restore(); |
| var helper = require('./test_helper.js') | |
| , express = require('express') | |
| , it = helper.it(exports); | |
| var app = express.createServer(); | |
| app.post('/calculator/add', function (req, res) { | |
| res.send('5'); | |
| }); | |
| var helper = require('./test_helper.js') | |
| , express = require('express') | |
| , it = helper.it(exports); | |
| var app = express.createServer(); | |
| app.on('close', function(){ | |
| console.log('Shutting down!'); | |
| }); |
| var app = module.parent.exports | |
| , helpers = app.viewHelpers; |