Skip to content

Instantly share code, notes, and snippets.


Ryan Balfanz RyanBalfanz

Block or report user

Report or block RyanBalfanz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
RyanBalfanz / index.html
Created Jan 2, 2019
Analog Clock for ARTIFACT
View index.html
<!DOCTYPE html>
<canvas id="canvas" width="400" height="300" style="background-color:#333"></canvas>
<script>'Adapted for ARTIFACT from');
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");

Keybase proof

I hereby claim:

  • I am RyanBalfanz on github.
  • I am balfanz ( on keybase.
  • I have a public key whose fingerprint is 7A83 C820 DCA9 470B F140 9C93 02EE DA51 A78E E78E

To claim this, I am signing this object:

RyanBalfanz /
Created Jul 8, 2016 — forked from Morreski/
Python SimpleHTTPServer for Static Serving (React / Angular / Ember) in HTML5 mode (a la mod_rewrite)
Taken from:
import sys
import os
if sys.version_info < (3,):
import SimpleHTTPServer as server
RyanBalfanz /
Last active Jun 29, 2019
[Heroku] Direct to S3 File Uploads in Python
Fix for some issues with the original code from Heroku:
This example is also designed for use with Django, not Flask as in the original.
import base64
import hashlib
import hmac
RyanBalfanz /
Last active Aug 29, 2015
Arch Linux fresh install on Raspberry Pi

Prepare the SD Card:

➜  Downloads  time sudo dd bs=1m if=ArchLinuxARM-2014.06-rpi.img of=/dev/rdisk1
1870+0 records in
1870+0 records out
1960837120 bytes transferred in 132.563127 secs (14791723 bytes/sec)
sudo dd bs=1m if=ArchLinuxARM-2014.06-rpi.img of=/dev/rdisk1  0.01s user 0.90s system 0% cpu 2:12.58 total

Update and Install Additional Packages

RyanBalfanz / Makefile
Created Jul 30, 2013
Boggle Solver in Python
View Makefile
python -m cProfile < board_3.txt
RyanBalfanz /
Created Apr 12, 2012
Convert an ICO file to a CUR file
#!/usr/bin/env python
# coding: utf-8
from optparse import OptionParser
import sys
usage = """%prog infile [options]
Reads an ICO file and writes a CUR file. The ICO file should contain a single
image. If no outfile name is provided, the infile name is used to create an
RyanBalfanz /
Created Apr 9, 2012
pip install -U ALL_THE_THINGS
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
except Exception as e:
print "Caught Exception: {error}".format(error=e)
print "Dunzo"
View chart.css
html {
height: 100%;
-webkit-box-shadow: inset 0 0 20px 0 rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 0 20px 0 rgba(0,0,0,0.2);
-webkit-font-smoothing: antialiased;
padding: 0;
margin: 0;
font-family: 'HelveticaNeue', Helvetica, Arial Sans-serif;
font-size: 13px;
color: #555555;
import logging
import random
import sys
import time
from arduino import Arduino
def setup_board(device=None, outputPins=None):
You can’t perform that action at this time.