This is a CFP for ReactiveConf 2017's open call for Lightning talks. If you'd like to see this talk become a reality, please ⭐ star this gist. #ReactiveConf
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
## やる気が出ないときにやることリスト(やらなくてもいいリスト) | |
ジェイソン・フリード&DHHのREWORK(小さなチーム大きな仕事)を読む | |
dotfilesの整理 | |
tumblerでLGTM用のGIFの収集 | |
今までのプロジェクトのreadmeのバッジを盛りに盛っていく | |
惰性で自分のnpmライブラリの依存の更新(120パッケージぐらい公開してるのでこれだけで時間が吹き飛ぶはず) | |
ポエムを書く | |
コードギアス耐久全話視聴 | |
ラーメンを食べに行ってTwitterで飯テロ | |
ニトリに行く |
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
const { Document, serializeOperation, deserializeOperation } = require('@atom/teletype-crdt') | |
const doc1 = new Document({siteId: 1}) | |
const doc2 = new Document({siteId: 2}) | |
const ZP = {...{row: 0, column: 0}} | |
doc1.setTextInRange(ZP, ZP, 'a') | |
doc2.setTextInRange(ZP, ZP, 'b') | |
doc1.integrateOperations(doc2.getOperations()) |
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
const path = require('path') | |
const peg = require('pegjs') | |
const pegHandler = (code, {eventPath, plugin, filename}) => { | |
return peg.generate(code, {output: 'source', format: 'commonjs'}) | |
} | |
const jsonHandler = (code, {eventPath, plugin, filename}) => { | |
const objectName = path.basename(filename, '.json').replace(/-[a-z]/g, s => s.substr(1).toUpperCase()) | |
return `const ${objectName} = ${code}\nmodule.exports = ${objectName}` |
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
/** | |
* WHY? - BECAUSE EXCEPTIONS/TRY/CATCH IS A GLOBAL HORRIBLE MESS :-( | |
* Check out error handling in golang: https://blog.golang.org/error-handling-and-go | |
*/ | |
/** | |
* Wrap an "unsafe" promise | |
*/ | |
function safePromise(promise) { | |
return promise |
This guide assumes you have the emmet
and language-babel
packages already installed in Atom
- Open the
keymap.cson
file by clicking onAtom -> Keymap…
in the menu bar - Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':