I hereby claim:
- I am wesm87 on github.
- I am wesmoberly (https://keybase.io/wesmoberly) on keybase.
- I have a public key ASBQQ0IGrQXbe52YuS4kOFcHTzdrCsdLGO4YlnghWSt0ego
To claim this, I am signing this object:
# Root object | |
root = exports ? module.exports ? self ? this | |
# Replace `plugin_slug` below with whatever you used in `wp_localize_script()`. | |
# The `||= {}` at the end will assign an empty object to `root.plugin_slug` if it doesn't already exist. | |
app = root.plugin_slug ||= {} | |
# Dependencies | |
$ = root.jQuery ? root.$ | |
_ = root._ |
// Breakpoints | |
$breakpoints: ( | |
'sm': 480px, | |
'sm+': 640px, | |
'md': 768px, | |
'md+': 1024px, | |
'lg': 1280px, | |
'lg+': 1440px, | |
'xl': 1600px, | |
'xl+': 1920px, |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Custom typedef for React Router v4 (WIP). | |
*/ | |
declare module 'react-router' { | |
export type Action = 'PUSH' | 'REPLACE' | 'POP'; | |
export type Location = { | |
pathname: string, | |
search: string, |
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
on_changed() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" || return 0 | |
} |
import { is, when, anyPass, clone } from 'ramda' | |
const stubValue = (value) => () => when( | |
anyPass([ | |
is(Array), | |
is(Object), | |
]), | |
clone, | |
)(value) |
const recordList = [ | |
{ id: 1, a: 'b' }, | |
{ id: 2, foo: 'bar' }, | |
{ id: 3, hello: 'world' }, | |
] | |
/** | |
* Lodash FP Version | |
*/ | |
import { keyBy, property } from 'lodash/fp' |