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
_.filter(um.stack.where({type: 'change'}), function (model) { | |
return !model.get('after')._id | |
}); |
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
Animal = (function() { | |
function Animal(name) { | |
this.name = name; | |
} | |
Animal.prototype.move = function(meters) { | |
return alert(this.name + (" moved " + meters + "m.")); | |
}; | |
return Animal; |
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 stylus = require('stylus'); | |
var send = require('koa-send'); | |
exports.get = function *(next) { | |
this.root = process.cwd() + '/app'; | |
yield stylus | |
.middleware(this.root) | |
.bind(null, this.req, this.res); | |
yield next; | |
yield send(this, this.path, {root: this.root}); |
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
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**" | |
], | |
"always-semicolon": true, | |
"block-indent": " ", | |
"colon-space": ["", " "], | |
"color-case": "upper", | |
"color-shorthand": true, |
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
/showplaces - показывает с каких устройств вы залогинены | |
/remotelogout - после этой команды Skype выходит со всех устройств, кроме текущего |
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
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**" | |
], | |
"always-semicolon": true, | |
"block-indent": " ", | |
"colon-space": ["", " "], | |
"color-case": "upper", | |
"color-shorthand": true, |
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
function debounce(cb, timeout) { | |
var timer; | |
return function () { | |
timer && clearTimeout(timer); | |
timer = setTimeout(function () { | |
cb.apply(this, arguments); | |
}, timeout); | |
}.bind(this); | |
} |
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 i -g pkgcount | |
➜ pkgcount --duplicates -s | |
options.sortKey duplicates | |
NAME COUNT | |
[email protected] 2 | |
[email protected] 2 | |
[email protected] 2 | |
[email protected] 2 | |
[email protected] 2 |
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
➜ ~ cat ~/.dotfiles/bin/dotfiles-test | |
#!/bin/bash | |
echo 'hello world' | |
➜ ~ echo $PATH | |
/usr/local/share/npm/bin/:~/.dotfiles/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
➜ ~ dotfiles-test | |
zsh: command not found: dotfiles-test | |
➜ ~ bash | |
bash-3.2$ source .exports |
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
// http://www.usingenglish.com/reference/irregular-verbs/ | |
var irverbs = []; | |
$('.irregverbs tr').toArray().slice(1).forEach(function(e) { | |
var item = []; | |
item.push($(e).find('a strong').text()); | |
$(e).find('td').toArray().slice(1).forEach(function(e) { item.push($(e).text()) }); | |
irverbs.push(item); | |
}); | |
console.dir(irverbs) |