Skip to content

Instantly share code, notes, and snippets.

@mpacer
mpacer / agree plot pandas.ipynb
Last active May 20, 2019 02:11
A quick agreement plot modified to work with a pandas series
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mpacer
mpacer / agree_plot.ipynb
Created May 20, 2019 00:24
Quick plot showing how to plot agreement with matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mpacer
mpacer / diff_files.py
Last active May 16, 2018 16:45
diff files quickly in subdirs
#!/usr/bin/env python3
import os
import glob
import itertools
import sys
import argparse
from subprocess import Popen, PIPE
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mpacer
mpacer / tags.js
Created September 20, 2017 03:06
Nicer tags
// pages/tags.js
// At 127.0.0.1:3000/tags on a next dev run
import React from "react";
const ButtonStyle = {
border: "none",
backgroundColor: "#c3e2e9",
display: "inline-block",
textDecoration: "none",
padding: ".25em 0.5em",
@mpacer
mpacer / tags.js
Created September 19, 2017 00:21
(not-so) Quick prototype of adding tags w/ react components
// pages/tags.js
// At 127.0.0.1:3000/tags on a next dev run
import React from "react";
function appendTag(tags, newTag) {
// Since arrays are mutable, we use `concat` to return a copy of the original
// array with our new tag
// Question: is the reason to not just change it mutably that that isn't clean
// and against the ethos of React?
@mpacer
mpacer / IPython-dl.ipynb
Last active May 19, 2017 23:13
IPython-dl graphs improved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
site "http*://mail.google.com/*"{
unmap x
unmap k
unmap j
unmap o
unmap O
unmap N
unmap g
unmap t
unmap c