I hereby claim:
- I am ianonavy on github.
- I am ianonavy (https://keybase.io/ianonavy) on keybase.
- I have a public key whose fingerprint is 88CC 1897 CF89 A3AB F5E8 5F95 A9D4 05F4 8C84 74B3
To claim this, I am signing this object:
def memoize_to_file(func=None, **options): | |
"""Wraps a function definition so that if the function is ever | |
called with the same arguments twice, the results are pulled from | |
a cache stored in a file. The filename is specified when decorating | |
the memoized function. Iterable objects like dicts, lists or | |
pandas DataFrames are cast to a tuple before being hashed, and | |
everything else uses the object's __repr__ definition. | |
Usage: |
from __future__ import division | |
import argparse | |
import itertools | |
import sys | |
import threading | |
from math import pi, cos, sin, sqrt | |
import Tkinter as tk | |
from PIL import Image, ImageTk |
I hereby claim:
To claim this, I am signing this object:
aa | |
aah | |
aahed | |
aahing | |
aahs | |
aal | |
aalii | |
aaliis | |
aals | |
aardvark |
#!/usr/bin/env python | |
""" wdR Top Contributor List | |
This simple Python script shows the top contributing members of the online | |
community, webdevRefinery. It compiles a list of members with the highest post | |
counts and sorts them by how high their reputations are in proportion to their | |
post counts. | |
Author: ianonavy <ian@ianonavy.com> |
#!/usr/bin/env python | |
import sys, os, time, atexit | |
from signal import SIGTERM | |
class Daemon: | |
""" | |
A generic daemon class. | |
Usage: subclass the Daemon class and override the run() method |
#!/bin/bash | |
# | |
# Nexus 7 Setup Wi-fi | |
# | |
# Simple script to set up a Nexus 7 for a WPA2-Enterprise Wireless network | |
# with 802.1x authentication, which is broken in Android Jelly Bean. It | |
# relies on rooting the device. | |
# | |
# This script is a work in progress. I am not responsible for any issues | |
# that arise if you run this script with your device. Use at your own |
Title: | |
Tartuffe | |
Filename: | |
tartuffe.txt | |
Speed (in words per minute): | |
600 | |
Saved books: | |
Title: |
/* | |
Generates a perfect solution to http://www.loper-os.org/bad-at-entropy/manmach.html. | |
Naive algorithm: Maintain array of correct solution so far. Repeat '1' adding each to the solution until the machine scores. When it scores, save the solution, reset, and re-enter the solution up until right before it fails. Toggle between '1' and '0' and continue repeating until the machine scores. Do this until the solution array is size n. | |
First 1000 digits: | |
111110000111100001001110111100000101001101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101000111010001110100011101 |
Rebase-friendly alternative to the GitHub "Update Branch" button on the pull request page.
Rebases a remote origin branch onto the latest default branch. Right now, hard coded for "develop" even though most people use "master". Feel free to edit.
I personally use this when I have many remote branches to merge and want all of them to be up-to-date with the latest default branch after each rebase. Of course, if you don't prefer rebase as an updating strategy you can just use the "Update branch" button in the GitHub UI. This is a rebase-friendly alternative.