Skip to content

Instantly share code, notes, and snippets.

View odderlynat's full-sized avatar

Natalie West odderlynat

  • Dallas, TX
  • 05:31 (UTC -05:00)
View GitHub Profile
if ([[[UIDevice currentDevice] systemVersion] intValue] >= 5) {
// do your ios5 goodness
}
else {
// old, moldy hackiness here
}
@odderlynat
odderlynat / gist:851303
Created March 2, 2011 17:16
Small Elite
<a href="http://elite.surfthepool.com/sweepstakes">
<img src="http://elite.surfthepool.com/sweeps-images/sweeps_small.jpg" />
</a>
@odderlynat
odderlynat / gist:851301
Created March 2, 2011 17:16
Large Elite
<a href="http://sterling.surfthepool.com/sweepstakes">
<img src="http://sterling.surfthepool.com/sweeps-images/sweeps_small.jpg" />
</a>
@odderlynat
odderlynat / gist:851299
Created March 2, 2011 17:16
Large Elite
<a href="http://sterling.surfthepool.com/sweepstakes">
<img src="http://sterling.surfthepool.com/sweeps-images/sweeps_large.jpg" />
</a>
@odderlynat
odderlynat / gist:851298
Created March 2, 2011 17:15
Large Elite
<a href="http://elite.surfthepool.com/sweepstakes">
<img src="http://elite.surfthepool.com/sweeps-images/sweeps_large.jpg" />
</a>
@odderlynat
odderlynat / gist:851293
Created March 2, 2011 17:14
Large Pacific
<a href="http://www.pacificpools.com/sweepstakes">
<img src="http://www.pacificpools.com/sweeps-images/sweeps_large.jpg" />
</a>
@odderlynat
odderlynat / gist:851292
Created March 2, 2011 17:13
Small Pacific
<a href="http://www.pacificpools.com/sweepstakes">
<img src="http://www.pacificpools.com/sweeps-images/sweeps_small.jpg" />
</a>
function selectText() {
if (window.getSelection() != "") {
var selection = window.getSelection();
var range = selection.getRangeAt(0);
var newNode = document.createElement("pre");
newNode.appendChild(document.createTextNode(selection));
newNode.id = "selectedText";
grid = [[False, False, False, False],
[False,False,False, False],
[False,False,False, False],
[False, False, False, False]]
def pushButton(ele1, ele2):
global grid
grid[ele1][ele2] = not grid[ele1][ele2]
if (ele1 != 0):