Skip to content

Instantly share code, notes, and snippets.


Charlie Robbins indexzero

View GitHub Profile
indexzero / .gitignore
Last active Jul 10, 2020
Simple Yahrzeit calculator using Hebcal package
View .gitignore
# Ignore things not in the gist
indexzero / gather.js
Last active Aug 15, 2019
Basic puppeteer CSS coverage. Adapted from
View gather.js
const puppeteer = require('puppeteer');
const util = require('util');
const fs = require("fs");
const path = require('path');
(async (url) => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.coverage.startCSSCoverage();
await page.goto(url);
indexzero / output.log
Created May 30, 2019
Execution semantics for async functions not invoked with await
View output.log
executeMultiple | start
executeMultiple | end
executeMultipleAsync | start
executeMultipleAsync | end
executeMultiple | execute1
executeMultipleAsync | execute1
executeMultiple | execute2
executeMultipleAsync | execute2
executeMultipleAsync | callback
View index.html
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>es6 proxy #jsbench #jsperf</title>
<script src=""></script>
<script src="./suite.js"></script>
<h1>Open the console to view the results</h1>
indexzero / output.log
Created Apr 17, 2019
Promise.all proof by doing
View output.log
Start | 1 | foo
Start | 2 | bar
Start | 3 | bazz
End | 2 | bar
End | 3 | bazz
End | 1 | foo
[ 'foo', 'bar', 'bazz' ]
indexzero /
Last active May 10, 2019
Draft proposal for Push Notifications and PushNotificationiOS

Proposal for Push Notifications and PushNotificationiOS

@salakar, @ashoat, @indexzero, @swaagie, @3rdeden, and @msluther met today to discuss this. This is the draft proposal written up during that meeting. We plan to iterate on this over the next week and then post it into a new proposal in react-native-community.

A recording of that meeting can be found below in MP4 format.

Prior art

  • Push Notification packages
    • react-native-push-notification
indexzero /
Created Jun 27, 2018
Get all the notes about all polyfills served by
#!/usr/bin/env bash
for FILE in ./*/**/config.json; do
PNAME=`dirname "$FILE"`;
PJSON=`cat "$FILE" | json notes`;
if [ ! -z "$PJSON" ]; then
echo "$PNAME $PJSON";
View gist:ed594c02cf991c3b886f200d752ae979
test-maxsize in winstonjs/winston $ DEBUG=winston:file npx mocha test/transports/file-maxsize.test.js
winston:file ENOENT ok winstonjs/winston/test/fixtures/logs/testmaxsize.log
winston:file stat done: testmaxsize.log { size: 0 }
winston:file create stream start winstonjs/winston/test/fixtures/logs/testmaxsize.log { flags: 'a' }
winston:file create stream ok winstonjs/winston/test/fixtures/logs/testmaxsize.log
File (maxsize)
winston:file file open ok winstonjs/winston/test/fixtures/logs/testmaxsize.log
winston:file written true 0
indexzero /
Last active Dec 21, 2017
My thoughts on Git commit structure

Git commit prefixes

When possible it is preferable to break up your commits into smaller digestable chunks so that they are more readable during the peer review process. One way to accomplish this is by using a known set of git commit prefixes.

  • [api]: New apis / changes to apis
  • [test]: Update test/* files
  • [dist]: Changes to submodules, version bumps, updates to package.json
  • [tiny]: Small changes#