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 / index.html
Last active January 4, 2019 10:59
Material-UI Theme Export 2
<div class="mdc-components">
<div class="mdc-components__section">
<div class="mdc-components__column">
<div>
<div class="mdc-component mdc-component__buttons">
<p>Buttons</p>
<div class="mdc-component__section">
<div class="mdc-component__containers">
<div class="mdc-component__containers__primary">
<p>Primary</p><button class="mdc-fab material-icons" aria-label="Add"><span class="mdc-fab__icon">add</span></button> <button class="mdc-fab material-icons mdc-fab--plain" aria-label="Add"><span class="mdc-fab__icon">add</span></button>
@4s7r0
4s7r0 / index.haml
Created August 26, 2016 01:43
Packery layout with 3D blocks
.scene
%a{:class => "grid", :href => "http://packery.metafizzy.co/", :target => "_blank"}
.grid-item.w1.h3.z1.r
.grid-item.w1.h1.z2.o
.grid-item.w2.h1.z3.y
.grid-item.w1.h1.z4.g
.grid-item.w1.h1.z5.c
.grid-item.w1.h1.z6.b
.grid-item.w2.h2.z9.r
.grid-item.w1.h1.z7.y
@4s7r0
4s7r0 / .gitconfig.part
Created April 25, 2012 23:34
LOLA .gitconfig snippit
# From http://blog.kfish.org/2010/04/git-lola.html
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[color]
branch = auto
diff = auto
interactive = auto
status = auto
@4s7r0
4s7r0 / diffsec.py
Created April 4, 2012 06:35
DiffSec - Python - Difference in seconds between two datetime formated strings
import sys,time,string,getopt
def usage():
print "Usage: diffsec.py -f <fromTime> -t <toTime> \n"
sys.exit(2)
def parse_args():
global fromTime,toTime
fromTime = toTime = ""
@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):