This file contains hidden or 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 -x | |
useradd -m NibblesAndBits | |
sudo apt-get install build-essential -y | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update -y | |
sudo apt-get install nodejs -y | |
sudo apt-get install mongodb -y | |
sudo apt-get install couchdb -y |
This file contains hidden or 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'), | |
// coffee = require('gulp-coffee'), | |
// coffeelint = require('gulp-coffeelint'), | |
// gutil = require('gulp-util'), | |
// todo = require('gulp-todo'), | |
// source = require('vinyl-source-stream'), | |
// watchify = require('watchify'), | |
// header = require('gulp-header'), | |
// pkg = require('./package'), | |
// banner; |
This file contains hidden or 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() { | |
'use strict'; | |
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
dot = require('gulp-dot'), | |
less = require('gulp-less'), | |
sass = require('gulp-sass'), | |
rm = require('rimraf'), | |
reload = require('gulp-livereload'), |
This file contains hidden or 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
packages | |
├── Mesosphere | |
├── accounts-ui-bootstrap-dropdown | |
├── bootboxjs | |
├── dm-classes-management | |
├── dm-districts-management | |
├── dm-lessons-management | |
├── dm-list | |
├── dm-media-items | |
├── dm-schools-management |
This file contains hidden or 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
gulp.task('js:dev', ['clean:dev'], function() { | |
return es.concat( | |
gulp.src('app/js/**/*.coffee') | |
.pipe(coffee({base: true})), | |
gulp.src('app/js/**/*.js') | |
) | |
.pipe(concat('app.js')) | |
.pipe(gulp.dest('build/js')) | |
.pipe(watch()) | |
.pipe(reload()); |
This file contains hidden or 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 | |
sudo apt-get install build-essential -y | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update -y | |
sudo apt-get install nodejs -y | |
sudo apt-get install mongodb -y | |
sudo apt-get install git -y | |
sudo apt-get install nginx -y | |
sudo apt-get install htop -y |
This file contains hidden or 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 concatStream = require('concat-stream'); | |
var countDown = 3; | |
var urls = [ | |
{ | |
url: process.argv[2], | |
data: null | |
}, | |
{ | |
url: process.argv[3], |
This file contains hidden or 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
_data = {} | |
_inputElements = ['input', 'select', 'textarea'] | |
# Find this templates 'form' | |
form = template.find('form'); | |
for type in _inputElements | |
# Get all the fields as an array of jQuery objects | |
elements = $(form).find(type) | |
for element in elements | |
console.log element | |
if element.type == 'checkbox' |
This file contains hidden or 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
creationTime = new Date() | |
profile = | |
name: '' | |
stripeId: '' | |
created: creationTime.getTime() | |
address: '' | |
city: '' | |
state: '' | |
country: '' | |
limit: 2 |
This file contains hidden or 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
if(!Roles.userIsInRole(this.userId, ['s3_admin'])) { | |
return false | |
} | |
# Rest of the code |