Skip to content

Instantly share code, notes, and snippets.

Diseased Vermin
Damia, Sage of Stone
Blightwidow
Core Prowler
Fuel for the Cause
Phyrexian Crusader
Phyrexian Digester
Phyrexian Hydra
Phyrexian Juggernaut
Phyrexian Vatmother
@ErinCall
ErinCall / gist:1230967
Created September 21, 2011 01:37
ok so this probably isn't what I should be doing, but it definitely isn't what python should be doing
>>> def foo(bar=None):
... def baz():
... if not bar: bar = 'goo'
... print bar
... baz()
...
>>> foo()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 5, in foo
@ErinCall
ErinCall / gist:1138231
Created August 10, 2011 20:54
{}.update
>>> foo = { 'a': 1, 'b': 2 }
>>> foo.update({'b': 444444, 'c': 3});
>>> foo
{'a': 1, 'c': 3, 'b': 444444}
@ErinCall
ErinCall / gist:1135337
Created August 9, 2011 22:10
lexical scope in if-block in perl
§ perl
use strict;
if (0) {
my $foo = 'albertsons';
}
print "->$foo<-"
Global symbol "$foo" requires explicit package name at - line 5.
Execution of - aborted due to compilation errors.