Skip to content

Instantly share code, notes, and snippets.

View jasonkeene's full-sized avatar
:shipit:

Jason Keene jasonkeene

:shipit:
View GitHub Profile
@jasonkeene
jasonkeene / placeholder_shim.js
Last active October 5, 2015 07:08
Placeholder Text Shim
// placeholder text fallback
// requires modernizer and jQuery
$(function () {
if (!Modernizr.input.placeholder) {
var placeholder_text_color = '#999999';
function hide_placeholder_fake(real, fake) {
real.show();
real.focus();
@jasonkeene
jasonkeene / notes.rst
Created May 12, 2012 15:58
Introduction to Python Notes

Installing Python

Mac OSX
Binary installation from python.org
Windows
Binary installation from python.org
Ubuntu/Debian
sudo apt-get install python2.7
@jasonkeene
jasonkeene / life.py
Created March 20, 2012 19:33
Python implementation of Conway's Game of Life
"""Python implementation of Conway's Game of Life
Somewhat inspired by Jack Diederich's talk `Stop Writing Classes`
http://pyvideo.org/video/880/stop-writing-classes
Ironically, as I extended the functionality of this module it seems obvious
that the next step would be to refactor board into a class with advance and
constrain as methods and print_board as __str__.
"""