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/sh | |
| while getopts f flag; do | |
| case "${flag}" in | |
| f) force='true';; | |
| esac | |
| done | |
| gitignoreFile=".gitignore" |
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
| const add = (key, fn) => { | |
| fn = (() => { | |
| let original_fn = fn; | |
| return (...params) => { | |
| const original_result = original_fn.apply(this, params); | |
| return another_func(...original_result); | |
| }; | |
| })(); | |
| }; |
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 db = require('./db'), | |
| util = require('util'), | |
| max = 2; | |
| var ormify = function (o, base) { | |
| if (!o) return {}; | |
| var r = {}; | |
| var traverse = function (t, arr) { | |
| if (arr.length == 1) return; | |
| var s = arr[0]; |
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 Promise = require('bluebird'), | |
| mysql = require('mysql'), | |
| using = Promise.using; | |
| Promise.promisifyAll(require("mysql/lib/Connection").prototype); | |
| Promise.promisifyAll(require("mysql/lib/Pool").prototype); | |
| var env = (process.env.NODE_ENV == 'production') ? 'prod': 'dev'; | |
| var pools = {}; | |
| var base = { |
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 module = angular.module('ng-lazy', []); | |
| module.directive("ngLazy", function() { | |
| return { | |
| link : function(scope, element, attrs) { | |
| var img, loadImage; | |
| img = null; | |
| loadImage = function() { | |
| element[0].src = attrs.ngLazyPlaceholder; | |
| img = new Image(); | |
| img.src = attrs.ngLazy; |
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 mod = angular.module('ng-infinite', []); | |
| mod.directive('ngInfinite', [ '$window', '$timeout', function($window, $timeout) { | |
| return { | |
| link : function(scope, elem, attrs) { | |
| scope.$on('$destroy', function() { | |
| return container.off('scroll', handler); | |
| }); | |
| var calculate = function() { | |
| var body = $('body'); | |
| var clientHeight = document.documentElement.clientHeight; |