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
export MONGO_URL=mongodb://localhost:27017/name_of_database |
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
doctype html | |
html | |
head | |
meta(charset='utf-8') | |
meta(http-equiv='X-UA-Compatible', content='IE=edge') | |
meta(name='viewport', content='width=device-width,initial-scale=1.0') | |
title= title | |
link(rel='stylesheet', href='//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css') | |
block css | |
body |
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 http = require('http'); | |
var connect = require('connect'); | |
var socketio = require('socket.io'); | |
var fs = require('fs'); | |
var os = require('os'); | |
var exec = require('child_process').exec; | |
var util = require('util'); | |
var $ = require('underscore'); | |
var load_data_in_mem_count = 3000; |
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 connectAssets = require('connect-assets'); | |
app.use(connectAssets({ | |
paths: [path.join(__dirname, 'assets/js'), | |
path.join(__dirname, 'assets/css'), | |
path.join(__dirname, 'components')], | |
buildDir: 'public/assets' | |
})); |
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
// application.js. | |
//= require "jquery/dist/jquery" | |
//= require "json2/json2" | |
//= require "underscore/underscore" | |
//= require "backbone/backbone" | |
//= require_tree . |
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
doctype html | |
html | |
head | |
title= title | |
!= css('application') | |
body | |
div.container-fluid | |
block content | |
!= js('application') |
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
#!/usr/bin/env ruby | |
ENV['RAILS_ENV'] ||= 'test' | |
require File.expand_path('../../config/environment', __FILE__) | |
require 'test_queue' | |
require 'test_queue/runner/rspec' | |
class RSpecQueueRunner < TestQueue::Runner::RSpec | |
def after_fork(num) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
export default { | |
/** | |
* 12345 => $12,345.00 | |
* | |
* @param {String} sign | |
* @param {Number} decimals Decimal places | |
*/ | |
currency (value, currency, decimals) { | |
value = parseFloat(value) |
OlderNewer