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 fs = require('fs'); | |
const har = JSON.parse(fs.readFileSync(process.argv[2])); | |
har.log.entries | |
.map(({ request }) => request.url) | |
.reduce((watchlist, url) => { | |
const seenTimes = watchlist.get(url) || 0; | |
watchlist.set(url, seenTimes + 1) |
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 unicodify(str) { | |
return str.split('') | |
.map(char => char.charCodeAt(0) | |
.toString(16) | |
.toUpperCase() | |
.padStart(4, '0')) | |
.map(hex => `\\u${hex}`) | |
.join(''); | |
} |
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
precision mediump float; | |
varying vec2 vTextureCoord; | |
varying vec2 aVertexPosition; | |
uniform sampler2D uSampler; | |
uniform vec4 startColor; | |
uniform vec4 endColor; |