Skip to content

Instantly share code, notes, and snippets.

View dorkitude's full-sized avatar

Kyle Wild dorkitude

View GitHub Profile
<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.

@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/
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,
"""
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):
<?
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="
class BaseTestCase(unittest.TestCase):
"""
Extend this with your test cases to get some sweet shit!
- Provides:
- Instance methods:
- self.persist_item(item) # Use instead of item.save()
- self.set_up()
- a subclass's method *must* call super
@dorkitude
dorkitude / gist:1398138
Created November 27, 2011 20:58
A sample use case for DSTruct: Remote Resource
"""
A sample use case for DSTruct ( https://github.com/dorkitude/dstruct )
Let's pretend we're implementing the in-app purchase feature of a mobile game,
and there's a remote payments API over which we have no control. To make
matters worse, their API doesn't support versioning and their client library
isn't properly encapsulated, so when they make an update to the API spec, we
have to handle it in our code. As a result, our spec demands type checking not
only to preempty failures when we post resources, but to vet the response.
@dorkitude
dorkitude / gist:1511815
Created December 22, 2011 20:53
git convenience functions from my Mac's .profile
# git convenience functions
function grso() {
git remote show origin ;
}
function mkremotebranch() {
git branch "$@" ;
git checkout "$@" ;
git push -u origin "$@" ;
}
adroit@Kyles-MacBook-Air:~/Dropbox/dev/Keen-Clients/ $ gem install keen
Building native extensions. This could take a while...
ERROR: Error installing keen:
ERROR: Failed to build gem native extension.
/Users/adroit/.rvm/rubies/ruby-1.9.2-p136/bin/ruby mkrf_conf.rb
"/Users/adroit/.rvm/rubies/ruby-1.9.2-p136/bin/ruby" -rubygems /Users/adroit/.rvm/gems/ruby-1.9.2-p136@global/gems/rake-0.8.7/bin/rake RUBYARCHDIR=/Users/adroit/.rvm/gems/ruby-1.9.2-p136/gems/keen-0.1.6/lib RUBYLIBDIR=/Users/adroit/.rvm/gems/ruby-1.9.2-p136/gems/keen-0.1.6/lib
rake aborted!
no such file to load -- bundler