jq is useful to slice, filter, map and transform structured json data.
brew install jq
#!/usr/bin/env bash | |
## tr -d '\n' | | |
## | |
## Behold. | |
## | |
## ______ _____ _ _ _____ _ ______ | |
## | ___ \ ___| | | | _ | | | _ \ | |
## | |_/ / |__ | |_| | | | | | | | | | | |
## | ___ \ __|| _ | | | | | | | | | | |
## | |_/ / |___| | | \ \_/ / |___| |/ / |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()
<html> | |
<head> | |
<script src="https://wzrd.in/bundle/lodash@4.11"></script> | |
<script src="https://wzrd.in/bundle/platform@1.3"></script> | |
<script src="https://wzrd.in/bundle/benchmark@2.1"></script> | |
</head> | |
<body> | |
<script> | |
var Benchmark = require('benchmark'); | |
var suite = new Benchmark.Suite; |
license: gpl-3.0 | |
height: 960 |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>JSON Formatter</title> | |
<script src="//fb.me/react-0.12.2.min.js"></script> | |
<script src="//fb.me/JSXTransformer-0.12.2.js"></script> | |
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Source+Code+Pro' rel='stylesheet' type='text/css'> |
Please follow these steps to set up your nick and configure your client. Check off each step to make sure it's been done:
Select a permanent, master nickname. If the nickname you want is registered but has expired, just ask a staffer and in most cases, we will be happy to drop it for you.
Please avoid using the name of a community project or trademarked entity, to avoid conflicts. Write down your password and be sure to keep the sheet of paper in a safe place.
Register your IRC nick:
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |