Skip to content

Instantly share code, notes, and snippets.

View jingibus's full-sized avatar

Bill Phillips jingibus

View GitHub Profile
@jingibus
jingibus / deeplinks.markdown
Last active January 30, 2023 19:07
Deep links
(ns life.core
(:require [clojure.string :as string]))
(def map-indexedv (comp vec map-indexed))
(defn neighbors
([coords]
(neighbors coords [1 1]))
([[y x] [ystep xstep]]
(let [x-range (range (- x xstep) (+ x xstep 1) xstep)
@jingibus
jingibus / headcapping.py
Created December 10, 2019 21:30
Headcapping v3
#!/usr/bin/python
import csv, sys, math
vocal = False
high_prob = 0.33
low_prob = high_prob / 2
high_prob_miss = 1 - high_prob
#!/usr/bin/python
import csv, sys
vocal = False
high_prob = 0.33
low_prob = high_prob / 2
high_prob_miss = 1 - high_prob
@jingibus
jingibus / InterfaceParentUUT__JsonHelper.java
Created January 25, 2018 09:27
Example generated code
package com.instagram.common.json.annotation.processor.parent;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.instagram.common.json.JsonFactoryHolder;
import com.instagram.common.json.JsonHelper;
import com.instagram.common.json.JsonSerializationHandler;
import java.io.IOException;
import java.util.HashMap;