Skip to content

Instantly share code, notes, and snippets.

✌( ͡ᵔ ͜ʖ ͡ᵔ )✌

Max Ogden maxogden

✌( ͡ᵔ ͜ʖ ͡ᵔ )✌
Block or report user

Report or block maxogden

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
maxogden / gist:249877
Created Dec 5, 2009
lists images in a directory, returns javascript array
View gist:249877
require 'pow'
class JPEG
attr_reader :width, :height, :bits
def initialize(file)
if file.kind_of? IO
else, 'rb') { |io| examine(io) }
View jQuery Live MobileSafari Click Bug
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
MobileSafari Live Click Bug
<script src='' type='text/javascript'></script>
<script src='' type='text/javascript'></script>
<body style='font-family: Helvetica;'>
maxogden / hash table in pure ruby
Created Feb 3, 2010
simple hash table in pure ruby
View hash table in pure ruby
class GammaDonkey
def initialize
@data =
@keys =
def hashed(value)
magic = 2166136261
value.each_byte {|byte| magic = ( magic * 16777619 ) ^ byte}
maxogden /
Created Apr 9, 2010
irbrc with textmate's sunburst colors and other fun enhancements
export PS1='\[\033[36m\]\W\[\033[m\] $(__git_ps1 "(\[\033[32m\]%s\[\033[m\]) ")\[\033[31m\]→\[\033[m\] '
export CLICOLOR=1
export LS_COLORS=exfxcxdxbxegedabagacad
source ~/
View frob_town
<script src=''></script>
<script src=''></script>
<script src=''></script>
<script src=''></script>
<link rel="stylesheet" type="text/css" href="" media="screen" charset="utf-8" />
var secret = 'SUCK_IT_HACKERSZ';
maxogden / instamapper_to_latitude.rb
Created May 20, 2010
gets data from instamapper and saves it to your google latitude account
View instamapper_to_latitude.rb
require 'rubygems'
require 'json'
require 'net/http'
require 'redis'
require 'oauth'
@redis =
@instamapper_api_key = "YOUR INSTAMAPPER API KEY"
View geojson.html
<html xmlns="">
<link rel="stylesheet" href="openlayers/theme/default/style.css" type="text/css" />
<script src=';v=2&amp;key=ABQIAAAAUXDSXET8IRGdgHP9FpGw5BT-fVzUWGS_eJ2ZLPBO_6yPqTi0vhQKAzahOrduDq0xQk09GR-UP3Jgcg'></script>
<script src="openlayers/lib/OpenLayers.js"></script>
<script src='jquery-1.4.2.min.js'></script>
<script src='jquery.enumerable.js'></script>
<script type="text/javascript">
var lon = -122.548188;
View IRC_mention_notifier.rb
# PROBLEM: when someone replies to you publicly in an IRC channel you may not be
# notified of it if you are away from your computer. The common format for public
# replies looks like this:
# <jchris> maxo_: yeah mine is way better
# SOLUTION: Sign up for notifo as both a supplier and a consumer, and install the
# notifo app on your smartphone. Execute this in cron every minute to have new
# mentions sent to your phone as push notifications.
View protovis_example.html
<script type="text/javascript" src=""></script>
<div id='content' style='width: 1115px; margin-left: auto; margin-right: auto'>
<div id='label'>
<center><h1 style='font-family:"Futura";font-weight:100; width: 800px; margin-left: auto; margin-right: auto'>Protovis Example</h1></center>
<center><h2 style='font-family:"Futura";font-weight:100; width: 800px; margin-left: auto; margin-right: auto'>Line Graph</h2> </center>
maxogden / datasets.js
Created Aug 8, 2010
portland oregon raw data urls
View datasets.js
You can’t perform that action at this time.