Skip to content

Instantly share code, notes, and snippets.

View micahwalter's full-sized avatar
👋

Micah Walter micahwalter

👋
View GitHub Profile
/*
Rotary Phone Dial Reader
This sketch reads out the number dialed on a rotary phone dial.
The rotary dial has two signals:
1) turns ON when the wheel is turning
2) pulses a count based on the number dialed.
The results are printed to the serial monitor.
import math
import Image
import Levenshtein
class BWImageCompare(object):
"""Compares two images (b/w)."""
_pixel = 255
""" base58 encoding / decoding functions """
import unittest
alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'
base_count = len(alphabet)
def encode(num):
""" Returns num in a base58-encoded string """
encode = ''
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences.
# Instructions:
# Go to TextMate > Preferences...
# Click Advanced
# Select Folder References
# Replace the following:
# File Pattern
@micahwalter
micahwalter / oauth
Created January 16, 2013 05:41 — forked from codingjester/oauth
#!/usr/bin/env python
import oauth2 as oauth
import urlparse
import urllib
consumer_key = '<your-key-here>'
consumer_secret = '<your-secret-key-here>'
request_token_url = 'http://www.tumblr.com/oauth/request_token'
#!/bin/ruby
require 'skeleton'
class BuyThatBot < Skeleton
def search
debug "check for tweets since #{@config[:since_id]}"
#
# search twitter
@micahwalter
micahwalter / .gitignore
Created August 18, 2010 03:35 — forked from redoPop/.gitignore
wordpress .gitignore
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your