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 MONGO_URI = process.env.MONGOLAB_URI || 'mongodb://127.0.0.1:27017/test'; | |
| var PORT = process.env.PORT || 8000; | |
| var url = require('url'); | |
| var REDIS_URI = url.parse(process.env.REDISTOGO_URL || "redis://dev:[email protected]/"); | |
| var express = require('express'); | |
| var sio = require('socket.io'); | |
| var rss = require('rss'); | |
| var RedisStore = require('connect-redis')(express); | |
| var redisAuth = REDIS_URI.auth.split(':'); |
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
| alias cleanbr='!git branch -r --no-color --merged | grep -v \"/\\(master\\|develop\\|integration\\)$\" | sed \"s/\\// :/\" | xargs -L1 git push && git branch --no-color --merged | grep -v \" \\(master\\|develop\\|integration\\)$\" | xargs -L1 git br -d' |
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
| newtonApprox = (x0, f, fprime, error) -> | |
| x1 = x0 - f(x0)/fprime(x0) | |
| if Math.abs(x1-x0) < error | |
| x1 | |
| else | |
| newtonApprox(x1, f, fprime, error) |
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
| br { | |
| display: none !important; | |
| } | |
| html * { | |
| display: inline !important; | |
| font-size: 6pt !important; | |
| float: none !important; | |
| word-wrap: nowrap !important; | |
| white-space: nowrap !important; | |
| position: static !important; |
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 through2 = require('through2'); | |
| var through = require('through'); | |
| var fs = require('fs'); | |
| //This is what most people use | |
| fs.createReadStream('testStreams.js') | |
| .pipe(through2(function(chunk, enc, cb) { | |
| console.log('t2', 's1'); | |
| cb(null, chunk); | |
| }, function(cb) { |
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
| http://eslint.org/docs/rules/no-extend-native | |
| http://eslint.org/docs/rules/no-return-assign | |
| http://eslint.org/docs/rules/no-param-reassign | |
| http://eslint.org/docs/rules/no-native-reassign | |
| http://eslint.org/docs/rules/no-extend-native | |
| http://eslint.org/docs/rules/no-ex-assign | |
| http://eslint.org/docs/rules/no-func-assign | |
| http://eslint.org/docs/rules/no-ex-assign |
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
| /*global describe, it */ | |
| let {expect} = require('chai'); | |
| let {Map, List, Set, Stack} = require('immutable'); | |
| let t2 = require('transduce'); | |
| describe('Immutable Transducer support', ()=> { | |
| it('List supports transducer protocols', () => { | |
| let val = t2.into(List(), t2.filter(()=>true), ['a', 'b', 'c']).toJS(); | |
| expect(val).to.deep.equal(['a', 'b', 'c']); | |
| }); |
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
| import * as escope from 'escope'; | |
| import babelEslint from 'babel-eslint'; | |
| let ast = babelEslint.parse('let a = <div/>;', { | |
| loc: true, | |
| range: true, | |
| raw: true, | |
| tokens: true, | |
| comment: true, | |
| attachComment: true, |
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
| npm verb stack at encodeFields (/Users/don.abrams/.nvm/versions/io.js/v2.3.3/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23) | |
| npm verb stack at /Users/don.abrams/.nvm/versions/io.js/v2.3.3/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:137:32 | |
| npm verb stack at Array.forEach (native) | |
| npm verb stack at encodeFields (/Users/don.abrams/.nvm/versions/io.js/v2.3.3/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23) | |
| npm verb stack at /Users/don.abrams/.nvm/versions/io.js/v2.3.3/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:137:32 | |
| npm verb stack at Array.forEach (native) | |
| npm verb stack at encodeFields (/Users/don.abrams/.nvm/versions/io.js/v2.3.3/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23) | |
| npm verb stack at /Users/don.abrams/.nvm/versions/io.js/v2.3.3/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:137:32 | |
| npm verb stack at Array.forEach (nat |
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
| "dependencies": { | |
| "body-parser": "^1.13.2", | |
| "connect": "^3.4.0", | |
| "cookie": "^0.1.3", | |
| "jsonwebtoken": "^5.0.4", | |
| "minimist": "^1.1.1", | |
| "morgan": "^1.6.1", | |
| "napoleon": "^2.0.1", | |
| "react": "^0.13.3", |