Skip to content

Instantly share code, notes, and snippets.

View figpope's full-sized avatar

Andrew FigPope figpope

  • Adaptive Biotech
  • Los Angeles, CA
View GitHub Profile
@figpope
figpope / iterm
Last active December 7, 2017 03:36 — forked from bobthecow/tab.bash
Open new Terminal tabs from the command line
#!/bin/bash
#
# Open new Terminal tabs from the command line
#
# Author: Justin Hileman (http://justinhileman.com)
#
# Installation:
# Add the following function to your `.bashrc` or `.bash_profile`,
# or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc`
#
@figpope
figpope / 0_reuse_code.js
Created April 21, 2016 15:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@figpope
figpope / scorer.md
Last active August 29, 2015 14:23
"The Join"

To "restart the world", we'll run a batch job then a streaming job.

Batch

  • read all profiles from the system of record and create a RDD[(String, FCProfile)] containing all profiles
  • read all interactions from the system of record, compute Map[handle: String, Map[ruleset_id: String, count: Int]] for each window
  • read all interactions from the system of record, "batch them" by timestamp, enumerate them

Streaming

@figpope
figpope / validator.js
Created April 24, 2015 18:15
1000Hz Validator for Bootstrap w/ support for hidden elements
/* ========================================================================
* Bootstrap (plugin): validator.js v0.8.1
* ========================================================================
* The MIT License (MIT)
*
* Copyright (c) 2015 Cina Saffary.
* Made by @1000hz in the style of Bootstrap 3 era @fat
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@figpope
figpope / keybase.md
Last active August 29, 2015 14:07
Keybase Verification

Keybase proof

I hereby claim:

  • I am figpope on github.
  • I am figpope (https://keybase.io/figpope) on keybase.
  • I have a public key whose fingerprint is C17C B801 A666 E198 E97E 4E02 E3D9 313B 13EC 71E5

To claim this, I am signing this object: