Skip to content

Instantly share code, notes, and snippets.

echo-server-epoll
echo-server-poll
talk
talk.dSYM
@gaearon
gaearon / slim-redux.js
Last active May 5, 2024 15:14
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@illnino
illnino / install-metasploit-on-yosemite
Created December 9, 2014 08:11
Yosemite中安装 Metasploit Framework
笔者工作中使用的主力机器是 MacBookPro, 系统是 Yosemite. 下面简介在 Yosemite中安装Metasploit Framework.
## Install Commandline for XCode
```
xcode-select --install
```
## Install Java7 SDK & JRE
```
http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-macosx-x64.dmg
@nikcorg
nikcorg / berlin-jsconf-2014.md
Last active August 4, 2023 12:45
Slide decks of JSConf 2014