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
npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements! | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.5 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 | |
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 |
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
echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf && echo -e 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf && echo 'ulimit -n 4096' | sudo tee -a /etc/profile |
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
@main-font-size: 16px; | |
.x-rem (@property, @value) { | |
// This is a workaround, inspired by https://github.com/borodean/less-properties | |
@px-fallback: @value * @main-font-size; | |
-: ~`(function () { return ';@{property}: @{px-fallback}'; }())`; | |
-: ~`(function () { return ';@{property}: @{value}rem'; }())`; | |
} |
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 express = require('express'); | |
var Promise = require('es6-promise').Promise; | |
var http = require('http'); | |
var app = express(); | |
var getJSON = function(options) { | |
console.log('CALLING ' + options['host']); | |
var promise = new Promise(function(resolve, reject) { | |
var req = http.get(options, function(res) { |
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
javascript: void( | |
(function (global, oDOC, handler) { | |
var head = oDOC.head || oDOC.getElementsByTagName('head'); | |
function LABjsLoaded() { | |
window.sourceMapSupport.install(); | |
} | |
// loading code borrowed directly from LABjs itself |
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
# To just run mongod | |
sudo mkdir /data | |
sudo mkdir /data/db | |
sudo chmod -R 777 /data | |
mongod |
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 Promise = require('bluebird'); | |
var promiseWhile = function(condition, action) { | |
var resolver = Promise.defer(); | |
var loop = function() { | |
if (!condition()) return resolver.resolve(); | |
return Promise.cast(action()) | |
.then(loop) | |
.catch(resolver.reject); |
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
IST-mbenin-4418:copilot mbenin$ bower install | |
[?] May bower anonymously report usage statistics to improve the tool over time? No/n) n | |
bower cached [email protected]:CondeNast/mdEditor.git#0.1.1 | |
bower validate 0.1.1 against [email protected]:CondeNast/mdEditor.git#0.1.1 | |
bower cached [email protected]:ckung/ember-model.git#693ab63fa3 | |
bower validate 693ab63fa3 against [email protected]:ckung/ember-model.git#conde | |
bower cached git://github.com/components/ember.git#1.0.1 | |
bower validate 1.0.1 against git://github.com/components/ember.git#~1.0.0-rc.6 | |
bower cached git://github.com/jquery/jquery.git#2.0.3 | |
bower validate 2.0.3 against git://github.com/jquery/jquery.git#~2.0.3 |
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
init: function () { | |
setInterval(function () { | |
ajax('/last-modified', { | |
cache: false | |
}).then(function (data) { | |
if (moment(this.get('date')).isBefore(data.modified)) { | |
this.set('appUpdated', true); | |
} | |
}.bind(this), function (e) { | |
//console.log(e); |
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
'use strict'; | |
module.exports = { | |
create: function (name, value, days) { | |
var expires; | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); | |
expires = "; expires=" + date.toGMTString(); |
NewerOlder