Based on http://67.media.tumblr.com/db4e1af67392bcc850a74a7270425885/tumblr_o88m45M9cl1twrbr9o1_540.gif
View Brewfile
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
brew 'coreutils' | |
brew 'tmux' | |
brew 'jq' | |
brew 'htop' | |
brew 'wget' | |
brew 'tree' | |
brew 'aria2' | |
brew 'xcbeautify' | |
brew 'git' |
View index.html
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> | |
<body></body> | |
<script> | |
const events = [ | |
'click', | |
'input', | |
'change', | |
'mouseenter', | |
'mouseleave', |
View task.js
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 { task, read, write } = require('taks') | |
const _postcss = require('postcss') | |
const _rollup = require('rollup') | |
const _uglify = require('uglify-es') | |
const postcss = task.plugin(async function (input, output, options) { | |
let opts = Object.assign({ from: undefined, plugins: [] }, options) | |
let src = await read(input) | |
let { css } = await _postcss(opts.plugins).process(src, opts) | |
return write(output, css) |
View task.js
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
#!/usr/bin/env node | |
const _tasks = {} | |
function task (name, fn) { | |
_tasks[name] = fn | |
} | |
task.run = async function (name, wait) { | |
if (!name) return console.warn(`Usage: node task [name]`) | |
if (!_tasks[name]) return console.warn(`No task named ${name}`) |
View search.sh
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
git fsck --no-reflogs | awk '/dangling commit/ {print $3}'| while read hash; do | |
echo "$hash" | |
git show $hash | grep -H -C4 svg | |
done |
View README.md
Simple comparison between Atomic CSS vs 'standard' CSS. Might not be representative of larger files.
results
file | raw | gzip |
---|---|---|
with-atomic.css | 576b | 325b |
with-atomic.html | 1183b | 254b |
without-atomic.css | 1676b | 324b |
without-atomic.html | 714b | 199b |
View abortable-promise.js
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
function AbortablePromise (fn) { | |
var abortHandler; | |
function onAbort (abortFn) { | |
abortHandler = abortFn; | |
} | |
var promise = new Promise(function (resolve, reject) { | |
fn.call(null, resolve, reject, onAbort); |
View gist:4bb8ffe1a12120a2923c
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
Verifying I am +ricardobeat on my passcard. https://onename.com/ricardobeat |
View when.js
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
Promise.prototype.spread = function (fn) { | |
this.then(function (values) { | |
fn.apply(this, values) | |
}) | |
} | |
function when () { | |
var requirements = Array.prototype.slice.call(arguments, 0) | |
return Promise.all(requirements.map(function(name){ |
NewerOlder