- Apollo
- Babel
- Serverless or CDK
- GraphQL
- MobX
- MobX State Tree
- NextJS
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
var colors = { | |
indigo: "#4b0082", | |
gold: "#ffd700", | |
hotpink: "#ff69b4", | |
firebrick: "#b22222", | |
indianred: "#cd5c5c", | |
yellow: "#ffff00", | |
mistyrose: "#ffe4e1", | |
darkolivegreen: "#556b2f", | |
olive: "#808000", |
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
echo starting antigen... | |
source /usr/local/share/antigen/antigen.zsh | |
antigen init $HOME/.antigenrc | |
export EDITOR="vim" | |
export HISTSIZE=9999999999 | |
export LANG="en_US.UTF-8" | |
export NVM_DIR="$HOME/.nvm" | |
export SSH_KEY_PATH="$HOME/.ssh/id_rsa" | |
export JAVA_HOME=$(/usr/libexec/java_home) |
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
❯ npm s /\^gulp- htdocs/git/master | |
NAME DESCRIPTION AUTHOR | |
gulp-6to5 Turn ES6 code into vanilla ES5 with no runtime required =sindresorhus… | |
gulp-9-patch Utilities for android-9-patch images. =manse | |
gulp-a11y A Gulp plugin for a11y to run accessibility audits on html… =mpezzi | |
gulp-absolute Filter files by absolute path =jeromedecoster | |
gulp-absolute-image =spud | |
gulp-absurd AbsurdJS plugin for Gulp =krasimir | |
gulp-accord a unified interface to compiled javascript languages =jenius | |
gulp-acss |
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 coerce(x) { | |
* return ''+x===x?(p=~~+x?r=+x:r=x):r=x | |
* } | |
* > undefined | |
* coerce(123) | |
* > 123 | |
* coerce('123') | |
* > 123 | |
* coerce('apple') |
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
export const deepFlat = (arr) => arr.flat(Infinity) |
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
// ... | |
renderMenu() { | |
const { children, ...rest } = this.props || {}; | |
// only store props that startWith `on` in case the parent component | |
// wants to send event callbacks down, for subsequent use. | |
const eventProps = Object.keys(rest) | |
.filter(key => key.substr(0, 2) === 'on') // if startsWith 'on' (ie. onMouseOver) | |
.reduce((obj, key) => Object.assign(obj, { [key]: rest[key] }), {}); | |
// ... |
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
module.exports = { | |
port: 8000, | |
globals: { | |
$: 'jquery', | |
jQuery: 'jquery', | |
_: 'lodash', | |
Backbone: 'backbone', | |
Marionette: 'backbone.marionette', | |
moment: 'moment' | |
}, |
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 assert = require('assert') // for tests | |
const deparam = url => { | |
const decodeUri = global.decodeURIComponent | |
const reduce = Array.prototype.reduce | |
const query = url.substr(url.indexOf('?') + 1).split('&') | |
return reduce.call(query, (memo, keyValue) => { | |
let key = keyValue.substr(0, keyValue.indexOf('=')) |