Skip to content

Instantly share code, notes, and snippets.

View af's full-sized avatar
🤔
...

Aaron Franks af

🤔
...
View GitHub Profile
@af
af / bench.js
Created December 10, 2014 06:01
var React = require('react')
var d = require('./index')(React)
// Simple benchmark for testing the effectiveness of memoization for JSnoX
// Usage: "time node bench.js", with and without the patch in question.
for (var i=0; i<10000; i++) {
d('input:email.test.test2')
d('div.foo')
d('section.foo', { className: 'baz', id: 'asdf' })
}
#!/bin/bash
mkdir /tmp/curl-ca-bundle
cd /tmp/curl-ca-bundle
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2
tar xzf curl-7.22.0.tar.bz2
cd curl-7.22.0/lib/
./mk-ca-bundle.pl
if [ ! -d /usr/share/curl/ ]; then
sudo mkdir -p /usr/share/curl/
else
.donut_chart
.slice
stroke: white
stroke-width: 2px
for colour, i in $donut_colours
&:nth-child({i})
fill: colour
@af
af / devtools.txt
Created May 16, 2014 21:27
Devtools tips
https://developer.chrome.com/devtools/docs/tips-and-tricks
* Cmd-Shift-C for inspector
* Sources panel
* Debugger keyboard shortcuts (F8-F11)
* breakpoints
* conditional breakpoints
* evaluating console in breakpoint's context
* scope variables- jump to definition
@af
af / keybase.md
Last active August 29, 2015 13:57

Keybase proof

I hereby claim:

  • I am af on github.
  • I am af (https://keybase.io/af) on keybase.
  • I have a public key whose fingerprint is AD26 0A22 0DE0 ADCE EA2E 0786 8F43 397F 2B4F 59A6

To claim this, I am signing this object: