Skip to content

Instantly share code, notes, and snippets.

View dorkitude's full-sized avatar

Kyle Wild dorkitude

View GitHub Profile
<?
public function getOAuthUrl($currentUrl = null, $permissions = array()) {
if ($currentUrl == null) {
$currentUrl = $this->getCurrentUrl();
}
$perm_string = '';
if (!empty($permissions)) {
$perm_string = '&scope='.implode(',',$permissions);
}
return "http://www.facebook.com/dialog/oauth?client_id="
"""
for simplicity, we scrapped this implementation from the framework (in favor of unshared counters)
for posterity, i'll leave this around in case someone clicks in from the Quest google doc commentary (and also in case we ever want to do named reference counting for another feature)
"""
# assuming we're in basement.quests module
class ActionObjective(BaseObjective):
window.addEvent('load', function() {
FB.api('/me?fields=third_party_id', function(response) {
if (response != 'undefined' && response.third_party_id != 'undefined') {
var el = new Element('iframe', {
'frameborder' : 0,
'width' : 760,
'height' : 76,
'scrolling' : 'no',
'marginwidth' : 0,
'marginheight' : 0,
@dorkitude
dorkitude / wikileaks mirrors
Created December 5, 2010 03:10
wikileaks mirrors
1.
http://freie-re.de/
2.
http://wikileaks.terrax.info/
3.
http://www.powned.tv/wikileaks/
4.
http://wikileaks.info/
5.
http://digitalevuilnisman.nl/wikileaks/
I'm from Cairo, IL.

I can tell you that it is most certainly special.

It is depressing simply as a pass-through town for tourists like the OP (to an inspiring extent -- see Stace England's album at http://en.wikipedia.org/wiki/Greetings_From_Cairo,_Illinois , or its piece in Neil Gaiman's book American Gods).. so imagine what it's like to live there and to have roots there.

With its population arguably below 1500 people and its unemployment well over 50%, the dead city is still alive with emotion, politics, and greed.

As the southernmost point in the union, Cairo's racial attitudes are a complicated history worthy of scholarly study. My hometown holds a position in literature as the beacon of hope for Mark Twain's ex-slave Jim, and in reality as an important link in the underground railroad. On the other hand, the city was one of the Union cities most plagued by segregation and therefore most polarized by the civil rights movement. In 1967, the city underwent days of violent race riots.

<code>
I'm from Cairo, IL.
I can tell you that it is most certainly special.
It is depressing simply as a pass-through town for tourists like the OP (to an inspiring extent -- see Stace England's album at http://en.wikipedia.org/wiki/Greetings_From_Cairo,_Illinois , or its piece in Neil Gaiman's book American Gods).. so imagine what it's like to live there and to have roots there.
With its population arguably below 1500 people and its unemployment well over 50%, the dead city is still alive with emotion, politics, and greed.
As the southernmost point in the union, Cairo's racial attitudes are a complicated history worthy of scholarly study. My hometown holds a position in literature as the beacon of hope for Mark Twain's ex-slave Jim, and in reality as an important link in the underground railroad. On the other hand, the city was one of the Union cities most plagued by segregation and therefore most polarized by the civil rights movement. In 1967, the city underwent days of violent race riots.
I'm from Cairo, IL.
I can tell you that it is most certainly special.
It is depressing simply as a pass-through town for tourists like the OP (to an inspiring extent -- see Stace England's album at http://en.wikipedia.org/wiki/Greetings_From_Cairo,_Illinois , or its piece in Neil Gaiman's book American Gods).. so imagine what it's like to live there and to have roots there.
With its population arguably below 1500 people and its unemployment well over 50%, the dead city is still alive with emotion, politics, and greed.
As the southernmost point in the union, Cairo's racial attitudes are a complicated history worthy of scholarly study. My hometown holds a position in literature as the beacon of hope for Mark Twain's ex-slave Jim, and in reality as an important link in the underground railroad. On the other hand, the city was one of the Union cities most plagued by segregation and therefore most polarized by the civil rights movement. In 1967, the city underwent days of violent race riots.
I'm from Cairo, IL.

I can tell you that it is most certainly special.

It is depressing simply as a pass-through town for tourists like the OP (to an inspiring extent -- see Stace England's album at http://en.wikipedia.org/wiki/Greetings_From_Cairo,_Illinois , or its piece in Neil Gaiman's book American Gods).. so imagine what it's like to live there and to have roots there.

With its population arguably below 1500 people and its unemployment well over 50%, the dead city is still alive with emotion, politics, and greed.

As the southernmost point in the union, Cairo's racial attitudes are a complicated history worthy of scholarly study. My hometown holds a position in literature as the beacon of hope for Mark Twain's ex-slave Jim, and in reality as an important link in the underground railroad. On the other hand, the city was one of the Union cities most plagued by segregation and therefore most polarized by the civil rights movement. In 1967, the city underwent days of violent race riots.

@dorkitude
dorkitude / gist:720589
Created November 29, 2010 20:48
originally posted on reddit I'm from Cairo, IL. I can tell you that it is most certainly special. It is depressing simply as a pass-through town for tourists like the OP (to an inspiring extent -- see Stace England's album at http://en.wikipedia.org/wi
I'm from Cairo, IL.
I can tell you that it is most certainly special.
It is depressing simply as a pass-through town for tourists like the OP (to an inspiring extent -- see Stace England's album at http://en.wikipedia.org/wiki/Greetings_From_Cairo,_Illinois , or its piece in Neil Gaiman's book American Gods).. so imagine what it's like to live there and to have roots there.
With its population arguably below 1500 people and its unemployment well over 50%, the dead city is still alive with emotion, politics, and greed.
As the southernmost point in the union, Cairo's racial attitudes are a complicated history worthy of scholarly study. My hometown holds a position in literature as the beacon of hope for Mark Twain's ex-slave Jim, and in reality as an important link in the underground railroad. On the other hand, the city was one of the Union cities most plagued by segregation and therefore most polarized by the civil rights movement. In 1967, the city underwent days of violent race riots.
I'm from Cairo, IL.
I can tell you that it is most certainly special.
It is depressing simply as a pass-through town for tourists like the OP (to an inspiring extent -- see Stace England's album at http://en.wikipedia.org/wiki/Greetings_From_Cairo,_Illinois , or its piece in Neil Gaiman's book American Gods).. so imagine what it's like to live there and to have roots there.
With its population arguably below 1500 people and its unemployment well over 50%, the dead city is still alive with emotion, politics, and greed.
As the southernmost point in the union, Cairo's racial attitudes are a complicated history worthy of scholarly study. My hometown holds a position in literature as the beacon of hope for Mark Twain's ex-slave Jim, and in reality as an important link in the underground railroad. On the other hand, the city was one of the Union cities most plagued by segregation and therefore most polarized by the civil rights movement. In 1967, the city underwent days of violent race riots.