Skip to content

Instantly share code, notes, and snippets.

View 4s7r0's full-sized avatar

Adam Moore 4s7r0

  • San Francisco, CA
View GitHub Profile
@4s7r0
4s7r0 / twitter-killjunk.js
Created January 8, 2019 22:10 — forked from freem/twitter-killjunk.js
disabling extraneous twitter features
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
[data-component-context="suggest_recap"],
[data-component-context="suggest_who_to_follow"],
[data-component-context="suggest_activity"],
[data-component-context="suggest_activity_tweet"],
[data-component-context="suggest_recycled_tweet_inline"],
[data-component-context="suggest_recycled_tweet"]{
display:none !important;
@4s7r0
4s7r0 / .block
Created January 5, 2019 00:24 — forked from mbostock/.block
Circle Wave
license: gpl-3.0
border: no
@4s7r0
4s7r0 / ka_bnet_numpy.py
Created March 28, 2012 03:54 — forked from kohlmeier/ka_bnet_numpy.py
Bayes net example in Python with Khan Academy data
#!/usr/bin/env python
from numpy import asmatrix, asarray, ones, zeros, mean, sum, arange, prod, dot, loadtxt
from numpy.random import random, randint
import pickle
MISSING_VALUE = -1 # a constant I will use to denote missing integer values
def impute_hidden_node(E, I, theta, sample_hidden):