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 Mousetrap from 'mousetrap' | |
export const init = (dispatch, state) => { | |
const keymaps = getKeymaps() | |
_.each(keymaps, (action, combo) => { | |
Mousetrap.bind(combo, () => { | |
dispatch(action(dispatch, state)) | |
}) | |
}) |
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 React from 'react' | |
import reactCSS from 'reactcss' | |
const ListItem = ({ label, first, last, hover }) => { | |
const styles = reactCSS({ | |
'default': { | |
item: { | |
marginTop: 1, | |
padding: 15, | |
background: '#333', |
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
app.use(express.static('src')) | |
app.get('*', (request, response) => { | |
response.sendFile(path.resolve(__dirname, '../src', 'index.html')) | |
}) |
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
//reducers/index.js | |
import { scopeStateToSelectors } from '../helpers/redux' | |
import threads, { selectors as threadsSelectors } from './threads' | |
... | |
// Scopes the state sent down to each of the selector functions by the key: | |
export const selectors = scopeStateToSelectors({ | |
threads: threadsSelectors, |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: 🔑 Felony (PGP made easy) v0.0.1 | |
Comment: 👀 How dafuq do I use this? --> http://felony.io 😉 | |
xsFNBFdcTDwBEACd6x2F48mpnsWNvfXBxdFsvZfPw5D5PmN4XsDPHCHPlMXg | |
YZEK/PPNWKQUYkUCW7kjLRqoCwyik3uAoGTVHHIC9NaC2jOXfNTy85mLu1Hb | |
u4J3+RBdXOntzIvUB2I7JREYw31eSRutO9S8PNkOyzBo1JuPiX2oeolYboFv | |
Og7OHYvmd/Tcq0kojSgvV898rHB6a8fspbfZoJWd0Ac9bWSPmxvwyY9QG7EM | |
lrbd3EFlrjVBIGLxpN+BzBT3FzQGvJF98bCq3987es+7tqyf4ptAF3AOZIY0 | |
PvblM1KusdVE1z/I14bC142OCHWfItQYXjdx5VmEfWOanLDnVl8cEC0OGeXP |
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
export default function() { | |
return { | |
visitor: { | |
Program(path, { file: { code }}) { | |
code = transform(code) | |
}, | |
}, | |
}; | |
} |
NewerOlder