Skip to content

Instantly share code, notes, and snippets.

View hamilton's full-sized avatar

Hamilton Ulmer hamilton

View GitHub Profile
@hamilton
hamilton / style.css
Last active February 21, 2020 20:44
take care of basic readability / accessibility issues in Riot
.mx_EventTile_highlight, .mx_EventTile_highlight .markdown-body {
color: black !important;
}
.mx_LinkPreviewWidget_description {
color: #444 !important;
}
.mx_BaseAvatar_image {
@hamilton
hamilton / process_lines.py
Last active December 3, 2019 03:31
plotting SFMTA coords using pandas + datashader + imagemagick
##### use this to get data in a format for the jupyter notebook
import csv
from os import listdir
from os.path import isfile, join
from math import floor
# take everything from one
# output time of day, lat, lon, that's it.
PATH = '../data/'
@hamilton
hamilton / README.md
Created March 29, 2019 04:37 — forked from TheNeuralBit/README.md
Scrabble Arrow

Scrabble Data in an Arrow file

538's data on 45 years of Scrabble games turned into an Arrow file

Usage:

$ python scrabble.py https://media.githubusercontent.com/media/fivethirtyeight/data/master/scrabble-games/scrabble_games.csv scrabble.arrow
@hamilton
hamilton / test.css
Last active October 30, 2018 22:35
* {
font-style: italic !important;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>dogfood - iodide</title>
<link rel="stylesheet" type="text/css" href="http://localhost:5000/dev/iodide.dev.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta
@hamilton
hamilton / calendar.html
Last active June 21, 2018 05:03
calendar
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>calendar - iodide</title>
<link rel="stylesheet" type="text/css" href="iodide.iodide-server.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Strike slip - iodide</title>
<link rel="stylesheet" type="text/css" href="https://iodide.io/master/iodide.master.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta
@hamilton
hamilton / eviction-notices-sf.html
Last active June 3, 2018 22:15
eviction-notices-sf.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Eviction Notices by SF Neighborhood, 1999-2017 - iodide</title>
<link rel="stylesheet" type="text/css" href="https://iodide-project.github.io/master/iodide.master.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta
@hamilton
hamilton / continuous-game-of-life--direct-port-.html
Last active May 27, 2018 05:26
continuous game of life (direct port)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>continuous game of life (direct port) - iodide</title>
<link rel="stylesheet" type="text/css" href="iodide.dev.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta
@hamilton
hamilton / continuous-game-of-life.html
Created May 27, 2018 05:08
continuous game of life
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>continuous game of life - iodide</title>
<link rel="stylesheet" type="text/css" href="iodide.dev.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta