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
batchFindAll = (model,where,cback,size=10)-> | |
model.count({where}) | |
.then (res)=> | |
total = res | |
[0..Math.floor(total/size)].reduce (curr,num)=> | |
count = num*10 | |
curr.then => cback(where,count,size) | |
,Promise.resolve() |
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
+ case "$(lsb_release -si)" in | |
++ lsb_release -si | |
+ export DOKKU_DISTRO=ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOKKU_IMAGE=gliderlabs/herokuish | |
+ DOKKU_IMAGE=gliderlabs/herokuish | |
+ export DOKKU_LIB_ROOT=/var/lib/dokku | |
+ DOKKU_LIB_ROOT=/var/lib/dokku | |
+ export PLUGIN_PATH=/var/lib/dokku/plugins | |
+ PLUGIN_PATH=/var/lib/dokku/plugins |
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 source = require('vinyl-source-stream'), | |
watchify = require('watchify'), | |
gulp = require('gulp'), | |
fs = require('fs'), | |
gulp = require('gulp'), | |
browserify = require('gulp-browserify'), | |
uglify = require('gulp-uglify'), | |
ngmin = require('gulp-ngmin'), | |
stylus = require('gulp-stylus'), | |
livereload = require('gulp-livereload'), |
NewerOlder