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
/** | |
* Metrics uses process.hrtime(time) for nano second precision. | |
* public api: startTimer, stopTimer, forEachTimer, clearTimers, filterTimer | |
*/ | |
import chalk from "chalk"; | |
const timers = new Map(); | |
const startTimer = (name, precision = 3) => { |
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
/** | |
* Metrics uses process.hrtime(time) for nano second precision. | |
* public api: startTimer, stopTimer, forEachTimer, clearTimers, filterTimer | |
*/ | |
import chalk from "chalk"; | |
interface Timer { | |
name: string, | |
precision: number, |
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
"" | |
" init.vim | |
"" | |
"" | |
" Plugins via vim-plug | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory | |
" names like 'plugin' |
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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
Show hidden characters
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
"Trio Front Matter": { | |
"scope": "html, markdown", | |
"prefix": "tfm", |
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
#!/bin/bash | |
VERSION=v10.1.14 | |
DISTRO=linux-x64 | |
mkdir ~/local | |
mkdir ~/local/lib | |
mkdir ~/local/lib/nodejs | |
tar -xJvf ~/Downloads/node-$VERSION-$DISTRO.tar.xz -C ~/local/lib/nodejs | |
mv ~/local/lib/nodejs/node-$VERSION-$DISTRO ~/local/lib/nodejs/node-$VERSION |
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
{ | |
"extends": "standard", | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { | |
"indent": [ | |
"error", | |
4 | |
], |
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
" {{ Plugins via vim-plug | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
" | |
call plug#begin('~/.local/share/nvim/plugged') | |
" Surround plugin | |
Plug 'tpope/vim-surround' |
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 curry = (fn) => { | |
var a = []; | |
var $curry = (...args) => { | |
var tooManyArgsException = n => | |
`too many args exception: curry expected ${fn.length} args; found ${n} args`; | |
a = [...a, ...args]; | |
// reset if already has fulfilled arity requirement |
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
* { | |
box-sizing: border-box; | |
} | |
/* | |
* 12 Column, Mobile First Grid System | |
*/ | |
/* clear fix */ | |
.row::after { |
NewerOlder