Clojureを勉強している12
- Clojure Documentation
- ClojureDocs
- 関数名やマクロ名で検索できる
- See Alsoセクションが似たような機能の関数を集めていて便利
- Quick Referenceもまた便利。チートシートだ。
- Grimoire
- チートシートになってる。
- ClojureDocs
- clojure/clojure
#!/usr/bin/env ruby | |
require "pty" | |
require "optparse" | |
require "tmpdir" | |
module PtyKeeper | |
module Core | |
def parse!(argv) | |
options = {} |
earthquake () { | |
/usr/bin/ssh -t dev 'socat STDIN,echo=0,icanon=0 SYSTEM:"reptyr $(cat /tmp/earthquake.pid)",pty,stderr,ignbrk=1' | |
sleep 20 | |
earthquake | |
} |
Clojureを勉強している12
package books_test | |
import ( | |
. "github.com/onsi/ginkgo" | |
//. "github.com/onsi/gomega" | |
ta "github.com/stretchr/testify/assert" | |
"testing" | |
) |
import 'whatwg-fetch' | |
import store from './store' | |
function _buildUrl (path, query) { | |
let url = path | |
if (query !== undefined) { | |
let queryArray = [] | |
for (const key of Object.keys(query)) { | |
queryArray = [...queryArray, `${encodeURIComponent(key)}=${encodeURIComponent(query[key])}`] | |
} |
export function encode (blob) { | |
return new Promise((resolve) => { | |
const r = new FileReader() | |
r.onload = () => { | |
const dataURL = r.result | |
const base64 = dataURL.split(',', 2)[1] | |
resolve(base64) | |
} | |
r.readAsDataURL(blob) |
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+shift+tab", | |
"command": "workbench.action.previousEditor" | |
}, | |
{ | |
"key": "ctrl+tab", | |
"command": "workbench.action.nextEditor" | |
}, |
// Place your settings in this file to overwrite the default settings | |
{ | |
"javascript.validate.enable": false, | |
"files.autoSave": "afterDelay", | |
"files.autoSaveDelay": 1000, | |
"eslint.enable": true, | |
"eslint.autoFixOnSave": false, | |
"eslint.alwaysShowStatus": true, | |
"tslint.enable": true, | |
"tslint.autoFixOnSave": false, |
{ | |
"extends": ["airbnb", "standard", "prettier"], | |
"plugins": ["react", "mocha", "standard", "prettier"], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"env": { | |
"mocha": true, |