Skip to content

Instantly share code, notes, and snippets.

View benjaminkimball's full-sized avatar

Benjamin Kimball benjaminkimball

  • Salt Lake City, UT
View GitHub Profile
### Keybase proof
I hereby claim:
* I am benjaminkimball on github.
* I am benjaminkimball (https://keybase.io/benjaminkimball) on keybase.
* I have a public key ASBv-EhEbo6vk_fNJtmV6idVEAAbIMqLcStaZ4NvKQB0Ugo
To claim this, I am signing this object:
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@benjaminkimball
benjaminkimball / setup.sh
Last active May 31, 2023 20:57
Building up my development environment from scratch!
# Install command line tools
xcode-select --install
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Git and GPG
brew install git gnupg
# Install Docker Desktop
@benjaminkimball
benjaminkimball / quality-hex.js
Created January 19, 2017 18:17
Dope ass maths...
import { h, Component } from 'preact'
const colors = {
cyan: '#00b8b8',
grey: '#e0e5db',
magenta: '#de3d83',
yellow: '#e4bd0b'
}
function QualityHex () {
@benjaminkimball
benjaminkimball / geohash.js
Last active February 6, 2024 01:24
Rough draft of Geohash implementation.
// Mo'orea, bb!
const latitude = -17.538843
const longitude = -149.829529
// With precision 9
const geohash = '2svknx1ky'
const flatten = require('lodash.flatten')
const padStart = require('lodash.padStart')
const zip = require('lodash.zip')