git clone https://gist.github.com/029a732fe90aee341ed0e5e50ac29ba3.git && \
cd 029a732fe90aee341ed0e5e50ac29ba3/ && \
npm install && \
npm run build && \
open 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
license: mit |
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
<a href="https://output.jsbin.com/luvemitici">Go to a different site</a> | |
<script>window.name = prompt('Give me a secret')</script> |
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> | |
<script src="https://unpkg.com/lodash/lodash.min.js"></script> | |
<script src="https://unpkg.com/platform/platform.js"></script> | |
<script src="https://unpkg.com/benchmark/benchmark.js"></script> | |
<pre id="output"></pre> | |
<script> | |
function log(message) { | |
document.getElementById("output").innerHTML += message + '\n'; | |
} |
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> | |
<script> | |
// based on https://github.com/paulirish/memory-stats.js/blob/6fa0f359134c4668bd9b931b95156bae1073e8eb/memory-stats.js#L70-L79 | |
function bytesToSize( bytes, nFractDigit ){ | |
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'] | |
if (bytes === 0) return 'n/a' | |
nFractDigit = nFractDigit !== undefined ? nFractDigit : 0 | |
var precision = Math.pow(10, nFractDigit) | |
var i = Math.floor(Math.log(bytes) / Math.log(1024)) |
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
{"value":[16297,312283,578862,580168,476721,451445,445198,414394,348653,272520,204662,154261,119804,94298,76588,63297,53276,44997,38734,32796,27926,24655,21721,19180,17051,15437,14097,12919,11891,10692,9690,8981,8426,7810,7506,7257,7121,6765,6609,6035,5661,5165,5027,4511,4242,4146,3868,3879,3678,3523,3302,3074,2801,2731,2592,2431,2344,2155,2033,2020,1891,1814,1813,1660,1711,1666,1554,1544,1496,1475,1344,1342,1363,1251,1281,1152,1105,1126,1066,1026,981,976,906,894,910,832,880,841,797,763,749,679,741,705,690,659,698,602,619,593,584,538,575,513,535,484,494,547,458,486,431,455,441,408,414,414,415,444,375,419,362,406,406,335,398,378,349,384,360,361,330,306,324,288,312,297,306,285,264,317,293,257,287,263,274,254,246,251,271,231,226,221,266,230,237,212,232,223,225,207,231,214,182,214,187,204,158,196,210,193,172,174,162,163,177,169,166,188,165,196,167,171,190,165,171,169,146,154,143,161,1,20499,305810,582781,588341,481816,455532,450281,417400,352482,273458,205025,155309,120830,95577,77702,64159,53571,45610,39138,3304 |
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
{"value":[9459,218914,485766,513084,422987,402829,399568,370712,313408,242408,182659,139829,108732,86360,70841,58740,49514,42057,36315,30905,26759,23307,20679,18115,16499,15124,13818,12772,11828,10656,9659,8973,8128,7760,7748,7425,7097,6860,6616,6229,5662,5154,4940,4594,4252,4014,3971,3935,3843,3694,3418,3164,3120,2801,2648,2565,2418,2379,2226,2099,2102,2009,1952,1822,1763,1769,1685,1557,1520,1532,1459,1397,1371,1292,1291,1224,1124,1119,1155,1084,1077,1021,1004,1014,951,860,905,853,850,820,798,732,765,815,734,681,704,695,678,640,585,635,562,576,577,546,504,514,512,502,522,487,514,481,464,452,454,436,451,425,414,416,431,410,387,394,357,370,411,363,311,370,346,362,319,282,312,297,317,354,293,306,300,286,299,252,297,311,264,253,222,238,253,237,256,244,225,222,215,230,205,216,248,218,206,208,208,211,216,191,217,195,217,209,189,196,165,191,191,192,161,183,154,185,168,173,185,157,182,154,0,9991,232869,511923,541156,448735,430348,424623,395114,333425,256694,193350,146594,114070,91705,75094,62550,52714,45279,38968,33 |
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
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/src/main/dashboard/index.js | |
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/node_modules/whatwg-fetch/fetch.js | |
isPolyfill? true /Users/jschulz/workspace/source/perftools/perfcenter/web/node_modules/babel-polyfill/lib/index.js | |
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/src/main/dashboard/components/Dashboard/index.js | |
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/node_modules/react/react.js | |
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/node_modules/react-dom/index.js | |
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/node_modules/react-dom/lib/ReactDOM.js | |
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/node_modules/react-dom/lib/ReactDOMComponentTree.js | |
isPolyfill? false /Users/jschulz/workspace/source/perftools/perfcenter/web/node_modules/react-dom/lib/ReactDefaultInjecti |
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: [ | |
// put all npm modules in the 'vendor' chunk | |
// matches react modules too, but they'll be moved by the next entry | |
new webpack.optimize.CommonsChunkPlugin({ | |
name: 'vendor', | |
minChunks: (module) => npmModuleRegex.test(module.resource) | |
}), | |
// put all key react modules in 'react' chunk | |
// they're ~140KB (~40KB gz) and don't change often | |
new webpack.optimize.CommonsChunkPlugin({ |
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
{ | |
"id": ["bin_start", "tool", "feature", "day"], | |
"dimension": { | |
"bin_start": { | |
"label": "Bin", | |
"category": { | |
"label": { | |
"0": "0", | |
"1": "1000", | |
"2": "2000", |