View olo_onboarding.json
{
"permalink": "bob-s-burgers",
"api_username": "upnerd_bob-s-burgers",
"location_url": "www.burge.rs",
"location_name": "Bob's Burgers",
"description": "Best burgers in town",
"phone_number": "505-877-8589",
"email": "bob@burgers.com",
"integration_status": "initiated",
"order_taking_status": "accepting",
View .macos
#
# Originally..
# https://github.com/mathiasbynens/dotfiles/blob/master/.macos
#
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
View keybase.md

Keybase proof

I hereby claim:

  • I am cmdoptesc on github.
  • I am cmdoptesc (https://keybase.io/cmdoptesc) on keybase.
  • I have a public key whose fingerprint is 59DA 9BAB 126F 9AFC BCFE 6BA8 1918 CAA8 286A 134E

To claim this, I am signing this object:

View manually-trigger-checkbox-change-event.js
// Manually trigger a change event on a checkbox element to have Switchery update its toggle state
// https://github.com/abpetkov/switchery/issues/27
// http://jsfiddle.net/3am89/
function onChange(checkboxEl) {
if (typeof Event === 'function' || !document.fireEvent) {
var event = document.createEvent('HTMLEvents');
event.initEvent('change', true, true);
checkboxEl.dispatchEvent(event);
View hn_search_with_sort.js
function query() {
var SORT_RECENT_FIRST = true;
var SEARCH_REPLIES = true;
var query_list = Array.prototype.slice.call(arguments);
var commentTable = document.querySelector('.comment-tree');
var commentNodes = Array.prototype.slice.call(commentTable.querySelectorAll('.athing'));
var COMMENT_TEXT_SELECTOR = '.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88';
View git-author-rewrite.sh
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
View d3.slider.css
.d3-slider {
position: relative;
font-family: Verdana,Arial,sans-serif;
font-size: 1.1em;
border: 1px solid #aaaaaa;
z-index: 2;
}
.d3-slider-horizontal {
height: .8em;
View README.md

Some of these files are from the us-atlas:

  • us.json - make topo/us-10m.json
  • us-congress-113.json - make topo/us-congress-10m.json

Others are from the world-atlas:

  • world-50m.json - make topo/world-50m.json
  • world-110m.json - make topo/world-110m.json
View README.md

D3: Async Arc Progress Gauge / Meter

View on bl.ocks.org/cmdoptesc/e9b3bfc6f43b4bd237e2

Forked from Bostock's original Progress Events example to answer Rex X's post on the d3-js group:

The progress meter is based on the number of files that have downloaded. In our case, numberOfFiles is set to 20.

We then generate 20 random durations between 0 - 3000ms to simulate download times, and call setTimeout using the durations. Each timer then calls update, which increments the number of files downloaded, increasing the progress arc with a tweening function.

View Readme.md

D3: Open Hours

view on bl.ocks.org
github repo

D3 visualisation utilising D3's text/CSV to read/parse a CSV file with restaurant information and display which restaurants are currently open.

Users can drag the time (red line) to display restaurants open at other hours.