I hereby claim:
- I am btmills on github.
- I am brandon (https://keybase.io/brandon) on keybase.
- I have a public key whose fingerprint is EE6D 75A3 23A7 208A CC35 9A65 7D5F D8A7 2009 AC0D
To claim this, I am signing this object:
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
* Similar to fgets(), but handles automatic reallocation of the buffer. | |
* Only parameter is the input stream. | |
* Return value is a string. Don't forget to free it. | |
*/ | |
char* ufgets(FILE* stream) | |
{ |
var spellings = ['(E|e)nt', ['rep', 'ep'], ['ren', 'en'], ['eur', 'er']]; | |
//var endings = ['', 'ship', 'ial']; | |
var parts = []; | |
for (var i = 0; i < spellings.length; i++) { | |
if (spellings[i] instanceof Array) { | |
parts.push('(?:'); | |
for (var j = 0; j < spellings[i].length; j++) { | |
parts.push(spellings[i][j]); |
var r = require('rethinkdb'); | |
// Insert this many rows | |
// 2547 will fail on connection with | |
// "(libuv) Failed to create kqueue (24)" | |
var COUNT = 2546; | |
// Database to use for the test | |
var DB = 'test' | |
// Table to use for the test | |
var TABLE = 'insertTest'; |
var r = require('rethinkdb'); | |
// How many connections in the pool? | |
// 2547 will fail with "(libuv) Failed to create kqueue (24)" | |
var CONNECTIONS = 2546; | |
// Insert this many rows | |
var COUNT = 10000; | |
// Database to use for the test | |
var DB = 'test' | |
// Table to use for the test |
var dashboard = document.getElementsByClassName('pokesDashboard')[0]; | |
window.setInterval(function () { | |
var pokes = dashboard.getElementsByClassName('uiIconText'); | |
for (var i = 0; i < pokes.length; i++) | |
pokes[i].click(); | |
}, 1000); |
globalize = (obj) -> | |
global[k] = v for k, v of obj |
id = (chars, len) -> | |
(chars[Math.ceil(Math.random()*chars.length)-1] for i in [1..len]).join('') |
I hereby claim:
To claim this, I am signing this object:
const INCREMENT = Symbol('INCREMENT'); | |
const DECREMENT = Symbol('DECREMENT'); | |
const makeReducer = (initialState, reducers = {}, props = {}) => | |
(state = initialState, action) => | |
reducers.hasOwnProperty(action.type) ? reducers[action.type](state, action) : state; | |
const reducer = makeReducer(42, { | |
[INCREMENT]: (state, action) => state + 1, | |
[DECREMENT]: (state, action) => state - 1 |
const Throttle = (delay = 30) => { | |
let timer = null; | |
let start = null; | |
return (cb) => { | |
if (start) { | |
const remaining = delay - (Date.now() - start); | |
clearTimeout(timer); | |
timer = setTimeout(() => { |