Skip to content

Instantly share code, notes, and snippets.

View twe4ked's full-sized avatar
🐦
just setting up my twttr

Odin Dutton twe4ked

🐦
just setting up my twttr
View GitHub Profile
@twe4ked
twe4ked / gist:5324733
Last active December 15, 2015 21:19 — forked from tatey/gist:5229724
class ViewController
include TableSection
def numberOfSectionsInTableView(tableView)
2
end
def numberOfRowsInSection0(tableView)
@data.count
end
@twe4ked
twe4ked / factorial.py
Created September 26, 2012 06:43 — forked from ghoseb/factorial.py
The evolution of a Python Programmer
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@twe4ked
twe4ked / 0_selector_hacks.scss
Created September 21, 2011 12:00 — forked from chriseppstein/0_selector_hacks.scss
This gist demonstrates some uses of the new sass feature: Passing content blocks to mixins.
@mixin ie6 { * html & { @content } }
#logo {
background-image: url("/images/logo.png");
@include ie6 { background-image: url("/images/logo.gif"); }
}