Skip to content

Instantly share code, notes, and snippets.

View Dangeranger's full-sized avatar
🦊
🍵 🐕 🚴

Joshua Burke Dangeranger

🦊
🍵 🐕 🚴
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dangeranger on github.
  • I am dangeranger (https://keybase.io/dangeranger) on keybase.
  • I have a public key whose fingerprint is F7F0 EC17 803F 29AE C576 C97B DED8 CBDB A8A9 B4A9

To claim this, I am signing this object:

@Dangeranger
Dangeranger / fix_borked_docker_machine.sh
Created February 3, 2016 21:28
fix borked docker machine
$ docker-machine ssh dev
Boot2Docker version 1.9.0, build master : 16e4a2a - Tue Nov 3 19:49:22 UTC 2015
Docker version 1.9.0, build 76d6bc9
$ sudo -i
$ rm -rf /var/lib/docker/network
# exit from the Docker host and then run
@Dangeranger
Dangeranger / pair_programmer_automation.md
Last active July 27, 2016 13:09
Description of how to make lonely pair programming work, maybe ...

Problem

  1. I am much more productive and performant when I program with another person while working through a problem.
  2. Other people are not usually around or available to program together on an issue.
  3. Programming along

Simple Solution

Rubber-Duck

  1. Buy a rubber duck
@Dangeranger
Dangeranger / orgmode_cheat_sheet.txt
Created September 13, 2016 13:08
OrgMode Cheat Sheet
From http://orgmode.org/orgcard.txt on 2016-09-13
================================================================================
Org-Mode Reference Card (for version 7.8.11)
================================================================================
================================================================================
Getting Started
@Dangeranger
Dangeranger / alias_matchers.md
Created March 11, 2017 21:36 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@Dangeranger
Dangeranger / postgres-upgrade-steps.md
Created October 14, 2017 15:00
Upgrading Postgres after brew upgrade

Notes from DevDocs team meeting March 30, 2018

Present:

Thibaut (GitHub: @thibaut) Alex Chafee (@alexch) Joshua Burke (?) Quincy Larson (@quincylarson)

During our 70-minute call, we talked about:

@Dangeranger
Dangeranger / hackerNews.js
Created September 5, 2018 15:04
Some of the JavaScript that HackerNews uses for it's site
function $(id) { return document.getElementById(id); }
function byClass (el, cl) { return el ? el.getElementsByClassName(cl) : [] }
function byTag (el, tg) { return el ? el.getElementsByTagName(tg) : [] }
function allof (cl) { return byClass(document, cl) }
function hasClass (el, cl) { var a = el.className.split(' '); return afind(cl, a) }
function addClass (el, cl) { if (el) { var a = el.className.split(' '); if (!afind(cl, a)) { a.unshift(cl); el.className = a.join(' ')}} }
function remClass (el, cl) { if (el) { var a = el.className.split(' '); arem(a, cl); el.className = a.join(' ') } }
function html (el) { return el ? el.innerHTML : null; }
function attr (el, name) { return el.getAttribute(name) }
function tonum (x) { var n = parseFloat(x); return isNaN(n) ? null : n }
@Dangeranger
Dangeranger / index.html
Created October 3, 2018 15:48
BTVCA: Live demo of iterating over an HTML element collection, 2018-10-03T11-30-00-EST
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.column {
float: left;
}
.row {
clear: both;
@Dangeranger
Dangeranger / open-collective-schema.json
Created February 12, 2019 00:27
Open Collective GraphQL Schema
{
"_queryType": "Query",
"_mutationType": null,
"_subscriptionType": null,
"_directives": [
{
"name": "include",
"description": "Directs the executor to include this field or fragment only when the `if` argument is true.",
"locations": [
"FIELD",