Skip to content

Instantly share code, notes, and snippets.

adamgibbons / map.html
Last active January 26, 2019 20:02
Meyer map
<div class="oregon-map-wrapper">
<nav class="oregon-map-wrapper__nav"><ul><li class="oregon-map-wrapper__nav__button--community" data-click="">Building<br class="hidden-small">
<li class="oregon-map-wrapper__nav__button--education" data-click="">Equitable<br class="hidden-small">
<li class="oregon-map-wrapper__nav__button--environment" data-click="">Healthy<br class="hidden-small">
<li class="oregon-map-wrapper__nav__button--housing" data-click="">Housing<br class="hidden-small">
"name": "Proto-Indo-European",
"children": [
"name": "Hellenic",
"children": [
"name": "Greek"
adamgibbons / output.txt
Created August 26, 2016 20:42
service fulfillments output
Executing (default): SELECT "serviceFulfillment"."id", "serviceFulfillment"."state", "serviceFulfillment"."service_provider_type", "serviceFulfillment"."created_at", "serviceFulfillment"."updated_at", "serviceFulfillment"."move_id", "serv
iceFulfillment"."branch_id", "move"."id" AS "", "move"."publicId" AS "move.publicId", "move"."inventory_method_selection" AS "move.inventory_method_selection", "move"."item_count" AS "move.item_count", "move"."excluded_item_count"
AS "move.excluded_item_count", "move"."mileage" AS "move.mileage", "move"."volume" AS "move.volume", "move"."excluded_volume" AS "move.excluded_volume", "move"."weight" AS "move.weight", "move"."excluded_weight" AS "move.excluded_weight",
"move"."move_step" AS "move.move_step", "move"."inventory_approved" AS "move.inventory_approved", "move"."inventory_ready_for_customer" AS "move.inventory_ready_for_customer", "move"."estimated_weight" AS "move.estimated_weight", "move".
"confirmed_weight" AS "move.confirmed_weight", "move"."survey_notes"
adamgibbons / get-submissions.js
Created July 29, 2016 22:16
get form submissions from slack _leads channel
var _ = require('lodash');
var fs = require('fs');
var readline = require('readline');
fs.readdir('./data', function(err, files) {
if (err) throw err; {
fs.readFile('./data/' + file, {encoding: 'utf-8'}, function (err, messages) {
if (err) throw err;
adamgibbons / get-zip-code.js
Created March 19, 2016 21:55
get client's zip code (first five)
var postalCode = res.results.filter(function (result) {
return result.types.indexOf('postal_code') !== -1;
var formattedPostalCode = postalCode.address_components.filter(function(component) {
return component.types.indexOf('postal_code') !== -1;
}).map(function(postalCode) {
adamgibbons / remove-duplicates.sql
Last active July 9, 2019 22:38
delete duplicate zips
DELETE FROM geoname WHERE (zip, place, state) IN
(SELECT DISTINCT ON (zip) zip, place, state FROM geoname WHERE zip IN
( '10804',

Keybase proof

I hereby claim:

  • I am adamgibbons on github.
  • I am adamgibbons ( on keybase.
  • I have a public key whose fingerprint is EF86 38B3 91C3 B077 B4E2 5105 C91C 0097 EAE2 C8F8

To claim this, I am signing this object:

adamgibbons / composition.js
Created January 9, 2016 22:26
javascript composition with ramda
var R = require('ramda');
var people = [
name: 'Adam',
age: 30,
gender: 'm',
party: 'd'
adamgibbons / upgrade-psql
Last active August 29, 2015 14:22
Upgrade PostgreSQL
`launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist`
`mv /usr/local/var/postgres /usr/local/var/postgres.old`
`initdb -D /usr/local/var/postgres`
`pg_upgrade -b /usr/local/Cellar/postgresql/9.3.5_1/bin -B /usr/local/Cellar/postgresql/9.4.3/bin -d /usr/local/var/postgres.old -D /usr/local/var/postgres`
p Visit <a href="">EquityZen</a> to see more Paths to IPO.
img(src="" width="500px")