Skip to content

Instantly share code, notes, and snippets.

View akameco's full-sized avatar

akameco akameco

  • Japan, Tokyo
View GitHub Profile
@akameco
akameco / not-todo-list.txt
Last active January 13, 2018 04:41
やる気が出ないときにやることリスト(やらなくてもいいリスト)
## やる気が出ないときにやることリスト(やらなくてもいいリスト)
ジェイソン・フリード&DHHのREWORK(小さなチーム大きな仕事)を読む
dotfilesの整理
tumblerでLGTM用のGIFの収集
今までのプロジェクトのreadmeのバッジを盛りに盛っていく
惰性で自分のnpmライブラリの依存の更新(120パッケージぐらい公開してるのでこれだけで時間が吹き飛ぶはず)
ポエムを書く
コードギアス耐久全話視聴
ラーメンを食べに行ってTwitterで飯テロ
ニトリに行く
@erukiti
erukiti / index.js
Created December 1, 2017 11:58
telettype-crdtの実験
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())
@erukiti
erukiti / s2s.config.js
Last active November 11, 2017 10:42
s2s-handler-peg s2s-handler-json
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}`
@kitten
kitten / reactiveconf-sc-cfp.md
Last active November 17, 2020 15:06
ReactiveConf 2017 Lightning Talk CFP: With styled-components into the future

styled-components Logo

With styled-components into the future

Preprocessing is dead, long live preprocessing!


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

@eiriklv
eiriklv / avoiding-exceptions.js
Last active February 2, 2019 12:13
Exception free JavaScript?
/**
* 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
@mxstbr
mxstbr / Readme.md
Last active December 20, 2023 12:01
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':