TODO: Write a project description
TODO: Describe the installation process
function getBlob(canvas) { | |
var data = atob(canvas.toDataURL().replace('data:image/png;base64,', '')), | |
bytes = new Uint8Array(data.length); | |
for (var i = 0, len = data.length; i < len; i++) { | |
bytes[i] = data.charCodeAt(i) & 0xff; | |
} | |
var bb = new BlobBuilder(); | |
bb.append(bytes.buffer); |
Prerequisites
Bummed about region lock? Start up your terminal and do this:
$ ssh -N -D 9999 yourserver.com
Testing JavaScript isn't just a thing you can read about in children's fairy tales.
This is just a scratch pad of everything I find. As the really good resources start to float to the top, I'll transition them to a more permanent GitHub repo.
$(cd /tmp && curl -H "Host: brooklynjs.com" 23.235.39.133 > brooklynjs.html && $(command -v open > /dev/null && which open || which xdg-open) brooklynjs.html && sleep 3 && rm brooklynjs.html) |
I've changed link to each video. I'll add links to slides as I find them :)
Simon Swain - Cold War Simulation
Yan Zhu - Weird Tricks to Improve Web Security 10000000% Slides
Jed Schmidt - Inline Styles
Michelle Bu - building component libraries
let object = { | |
key: { | |
subkey: 'value', | |
status: 'STATUS' | |
} | |
}; | |
// compact | |
Object.assign( {}, object, { key: Object.assign( {}, object.key, { status: 'PENDING' } ) } ); |
Kyle Simpson (@getify) wrote a very thoughtful post decrying optimize-js, which is a tool I wrote that exploits known optimizations in JavaScript engines to make JS bundles parse faster (especially minified bundles, due to what could be reasonably described as a bug in Uglify).
Kyle lays out a good case, but I tend to disagree with nearly all his points. So here's my rebuttal.
Open source is an important part of the react ecosystem. Most of the time you'll use components written by others, but you may wish to create components other people can use. For this guide, you'll need to have node.js and git installed.
First you'll need to create a project directory, and open a terminal in that directory. React components
are published as npm packages, so we need a package.json file. To create one, run npm init
and follow
the prompts.