Skip to content

Instantly share code, notes, and snippets.

View thomir's full-sized avatar

Thomi Richards thomir

View GitHub Profile
// @flow
import _ from 'lodash';
import { createSelector, defaultMemoize } from 'reselect';
import * as Account from 'app/entities/Account';
import * as Zap from 'app/entities/Zap';
import nodes from 'app/contact-us/content/nodes';
import { MAX_SERVICE_LINKS_TO_DISPLAY } from 'app/contact-us/constants';
import { getIncidents } from 'app/beta-editor/Selectors';
#!/usr/bin/env python3
import http.server
import requests
import socketserver
import threading
from requests.adapters import HTTPAdapter
# Set this variable to cause the assert to either pass or fail:

Keybase proof

I hereby claim:

  • I am thomir on github.
  • I am thomir (https://keybase.io/thomir) on keybase.
  • I have a public key whose fingerprint is E06F 1DFB 028E 6D90 A1DC 9BC2 B08C 8E6D 058D 4F29

To claim this, I am signing this object:

#!/bin/sh -ex
if [ -d reproducer_ve ]; then
rm -r reproducer_ve
fi
virtualenv reproducer_ve
. reproducer_ve/bin/activate
if [ "$1" = "-fail" ]; then
@thomir
thomir / svg2png.py
Created December 21, 2013 22:21
Various ways to convert SVG -> PNG
#!/usr/bin/env python
"""Convert an SVG file to a PNG file."""
from argparse import ArgumentParser
import subprocess
import os.path
def main():