It's just as if a man were wounded with an arrow thickly smeared with poison. His friends & companions, kinsmen & relatives would provide him with a surgeon, and the man would say, 'I won't have this arrow removed until I know whether the man who wounded me was a noble warrior, a priest, a merchant, or a worker.' He would say, 'I won't have this arrow removed until I know the given name & clan name of the man who wounded me... until I know whether he was tall, medium, or short... until I know whether he was dark, ruddy-brown, or golden-colored... until I know his home village, town, or city... until I know whether the bow with which I was wounded was a long bow or a crossbow... until I know whether the bowstring with which I was wounded was fiber, bamboo threads, sinew, hemp, or bark... until I know whether the shaft with which I was wounded was wild or cultivated... until I know whether the feathers of the shaft with which I was wounded were those of a vulture, a stork, a hawk, a peacock, or another bird...
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
'use strict' | |
const fs = require('fs') | |
const gulp = require('gulp') | |
const path = require('path') | |
fs.readdirSync(path.join(__dirname, 'gulp')) | |
.filter(f => f.endsWith('.js')) | |
.forEach(module => require('./gulp/' + module)) |
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 React = require('react') | |
const ReactDOM = require('react-dom') | |
class App extends React.Component { | |
render () { | |
return <div> | |
<h1>Hello world!</h1> | |
</div> | |
} | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Simple React</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="/app.js"></script> | |
</body> |
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
'use strict' | |
const koa = require('koa') | |
const send = require('koa-send') | |
const path = require('path') | |
const app = koa() | |
app.use(require('koa-compress')()) | |
app.use(require('koa-logger')()) | |
app.use(require('koa-static')('public')) |
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
'use strict' | |
const fs = require('fs-extra') | |
const path = require('path') | |
const os = require('os') | |
class Config { | |
constructor () { | |
this._path = path.join(os.homedir(), '.config', 'heroku', 'config.json') | |
this._read() |
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
love - like | |
much - many | |
child - kid | |
large - big | |
deal - sale | |
companion - partner | |
trash - junk | |
above - over | |
specify - designate | |
capitulate: cease to resist an opponent or an unwelcome demand; surrender: the patriots had to capitulate to the enemy forces. |
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
# current way | |
$ heroku cerate my-new-app-name --region us | |
! `cerate` is not a heroku command. | |
! Perhaps you meant `create`. | |
! See `heroku help` for a list of available commands. | |
$ heroku create # user has to copy-paste, or re-type | |
# new way | |
$ heroku cerate my-new-app-name --region us | |
▸ cerate is not a heroku command. |
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
let wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) |
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
'use strict'; | |
let spawn = require('child_process').spawn; | |
spawn('git', ['--version'], {stdio: 'inherit'}); |