Skip to content

Instantly share code, notes, and snippets.

View excid3's full-sized avatar
:shipit:
Shipping

Chris Oliver excid3

:shipit:
Shipping
View GitHub Profile
# Hey coops..
#
# Imagine yourself on the other side of the table: two job openings, hundreds of resumes,
# _all of which_ look friggin' identical. Yeah, the HR departments at your MegaCorp XYZ are using
# automated tools to scan for keywords, and the coop department at your school is trying to beat
# you into submission to follow some "predefined template".. But, unless what you're aspiring to
# is to be an automaton at MegaCorp XYZ, relegated to writing test harnesses for code that will
# never see the light of day.. please do yourself a favor, and _be different_! Be bold, dammit.
#
# (Frankly, I'm falling asleep while reading your resumes.. Wake me up! Srsly.)
#!/usr/bin/python
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@user = User.find(:all)
@users.each do |fbid|
result = JSON.parse(open(URI.encode("https://graph.facebook.com/me/friends?access_token=#{fbid.utoken}")).read)
@friendsp = result['data'][0]['id']
end
class Person:
population = 0
def __init__(self, name):
self.name = name
Person.population += 1
c = Person("chris")
b = Person("bob")
map(Person, ["chris", "bob"])
@excid3
excid3 / gist:911486
Created April 9, 2011 15:45
Current gem list
chris@tyndall:~$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.5, 3.0.4, 3.0.3, 3.0.1, 3.0.0, 3.0.0.rc2, 2.3.5, 2.3.4, 1.3.6)
actionpack (3.0.5, 3.0.4, 3.0.3, 3.0.1, 3.0.0, 3.0.0.rc2, 2.3.5, 2.3.4, 1.13.6)
actionwebservice (1.2.6)
activemodel (3.0.5, 3.0.4, 3.0.3, 3.0.1, 3.0.0, 3.0.0.rc2)
activerecord (3.0.5, 3.0.4, 3.0.3, 3.0.1, 3.0.0, 3.0.0.rc2, 2.3.5, 2.3.4, 1.15.6)
$(function(){
$('#slides').slides({
preload: true,
generateNextPrev: true
});
$('#divID2').slides({
preload: true,
generateNextPrev: true
});
});
$(function(){
$('#slides').slides({
preload: true,
generateNextPrev: true
});
$('#divID2').slides({
preload: true,
generateNextPrev: true
});
});
import feedburner
d = feedparser.parse("https://twitter.com/statuses/user_timeline/teamcoltra.rss")
print d['entries'][0]