python << EOF
import glob
for name in glob.glob('/*'):
print(name)
EOF
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
// Jests dont write to file in chron order, prefix with number helps | |
let count = 0; | |
const label = (tmpl, ...val) => { | |
val.reverse(); | |
return `${ | |
count++ // eslint-disable-line | |
}. ${ | |
tmpl.reduce((p, c) => p + c + (val.length ? val.pop() : ''), '') | |
}`; |
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
// The following must be executed in browser, and can be pasted into | |
// | |
// WHY? | |
// 1. Browser support is a bit spotty | |
// 2. Testing with node framework made harder as node doesn't come with internationalistion (full-icu) data by default | |
// 3. Int shim is ~56Kb https://github.com/andyearnshaw/Intl.js/blob/master/dist/Intl.min.js. This is ~7kb | |
var getNumberFormatFromIso2 = (iso) => { | |
let thousandsSeparatorSymbol; |
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
# Easy to use mocha globs to find test files in this structure: | |
# | |
# └─src | |
# │ └─index.spec.js | |
# └─.dist | |
# │ └─index.spec.js | |
# └─node_modules | |
# └─(...various...) | |
# | |
# With this structure, it got very difficult with include+exclude globs (perhaps impossible) |
- https://zwischenzugs.com/2018/01/06/ten-things-i-wish-id-known-about-bash/
- https://www.reddit.com/r/golang/comments/7s56vn/minimal_framework_vs_no_framework_in_golang/
- https://news.ycombinator.com/item?id=16219947
- styled-components/styled-components#494
- http://learnyousomeerlang.com/
- https://dev.to/grahamlyons/everything-you-need-to-know-about-networking-on-aws-4bkf
- http://codemirror.net/1/story.html
- http://marijnhaverbeke.nl/blog/
- http://blog.mecheye.net/2018/03/deconstructing-the-water-effect-in-super-mario-sunshine/
- https://ethereumfoundation.org/devcon3/
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 Differencify from '../index'; | |
const differencify = new Differencify({ debug: true }); | |
describe('Differencify', async () => { | |
let target; | |
let page; | |
beforeAll(async () => { | |
await differencify.launchBrowser({ args: ['--no-sandbox', '--disable-setuid-sandbox'], headless: false }); | |
target = differencify.init({ chain: false }); |
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
echo "" | |
echo "# Change log" | |
echo "" | |
git log `git describe --tags --abbrev=0`..HEAD --oneline --pretty=format:"* %s" | |
echo "" |
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
find . \ | |
\( -name '*.spec.js' -o -name '*.spec.jsx' \) \ | |
-and \ | |
\( \ | |
\( -not -path "*node_modules*" \) \ | |
-and \ | |
\( -not -path "*.dist*" \) \ | |
\) |