View plot_file_sizes.py
#!/usr/bin/env python
from sys import stdin, stdout
import csv
rdr = csv.reader(stdin, delimiter='\t')
wrt = csv.writer(stdout, delimiter='\t')
vals = []
rows = []
for row in rdr:
View keybase.md

Keybase proof

I hereby claim:

  • I am miku on github.
  • I am tir (https://keybase.io/tir) on keybase.
  • I have a public key whose fingerprint is C04A 5128 060D BC60 5C79 681B 8530 36B7 CFB6 414A

To claim this, I am signing this object:

View gist:4913230b8c52d4f7ccce1d0184ae1879
// TODO: #8575, for sid 127, use finer access facet (e.g. "Software" should be "Local Holdings")
// Why isn't result of getFormat ("FormatOrig") passed directly to "access_map.properties"?
// Use switch here?
switch (source_id) {
case "0":
return getFormat(record);
case "3":
result.add("LocalAccess");
break;
View wos_tidy_text.md
  ## ngram following http://tidytextmining.com/ngrams.html
    library(dplyr)
    library(tidytext)
    library(tidyr)

    # load manually downloaded web of science data dump
    tt <- jsonlite::stream_in(file("data/wos_total.json"), verbose = FALSE) %>% 
      filter(!is.na(AB))
View ..git-pr.md

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
View mosttags.txt
000 001 002 003 004 005 006 007 008 009 010.a 010.b 010.c 010.d 010.e 010.f 010.g 010.h 010.i 010.j 010.k 010.l 010.m 010.n 010.o 010.p 010.q 010.r 010.s 010.t 010.u 010.v 010.w 010.x 010.y 010.z 010.0 010.1 010.2 010.3 010.4 010.5 010.6 010.7 010.8 010.9 011.a 011.b 011.c 011.d 011.e 011.f 011.g 011.h 011.i 011.j 011.k 011.l 011.m 011.n 011.o 011.p 011.q 011.r 011.s 011.t 011.u 011.v 011.w 011.x 011.y 011.z 011.0 011.1 011.2 011.3 011.4 011.5 011.6 011.7 011.8 011.9 012.a 012.b 012.c 012.d 012.e 012.f 012.g 012.h 012.i 012.j 012.k 012.l 012.m 012.n 012.o 012.p 012.q 012.r 012.s 012.t 012.u 012.v 012.w 012.x 012.y 012.z 012.0 012.1 012.2 012.3 012.4 012.5 012.6 012.7 012.8 012.9 013.a 013.b 013.c 013.d 013.e 013.f 013.g 013.h 013.i 013.j 013.k 013.l 013.m 013.n 013.o 013.p 013.q 013.r 013.s 013.t 013.u 013.v 013.w 013.x 013.y 013.z 013.0 013.1 013.2 013.3 013.4 013.5 013.6 013.7 013.8 013.9 014.a 014.b 014.c 014.d 014.e 014.f 014.g 014.h 014.i 014.j 014.k 014.l 014.m 014.n 014.o 014.p 014.q 014.r 014.s 014.t
View main.py
#!/usr/bin/python
# coding: utf-8
from __future__ import print_function
import sys
def filled(seq):
"""
Given a sequence of non-negative numbers, determine the units of "water",
View main.go
package main
import (
"io"
"log"
"net/http"
selfdiagnose "github.com/emicklei/go-selfdiagnose"
"github.com/gorilla/mux"
View latency.txt
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD