This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
§ 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> foo = { 'a': 1, 'b': 2 } | |
>>> foo.update({'b': 444444, 'c': 3}); | |
>>> foo | |
{'a': 1, 'c': 3, 'b': 444444} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diseased Vermin | |
Damia, Sage of Stone | |
Blightwidow | |
Core Prowler | |
Fuel for the Cause | |
Phyrexian Crusader | |
Phyrexian Digester | |
Phyrexian Hydra | |
Phyrexian Juggernaut | |
Phyrexian Vatmother |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> def doathing(): | |
... def printathing(): | |
... print a | |
... | |
... for a in [ 'a', 'b']: | |
... printathing() | |
... | |
>>> doathing() | |
a | |
b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> var doathing = function() { var printathing = function() { console.log(wootabaga) }; for (var wootabaga = 0; wootabaga <= 1; wootabaga++) { printathing() }} | |
undefined | |
>>> doathing(); | |
0 | |
1 | |
undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# This script installs to /usr/local only. To install elsewhere you can just | |
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like. | |
#the first thing it does is define a bunch of methods to make things easier further on. | |
#That makes for sorta uncomfortable reading, since sometimes you can see *what* it's doing, | |
#but not *why* it's doing it. If you're mystified as to the purpose of something, go look | |
#at how it's used and see if that illuminates matters. | |
#Terminals use numbered control codes to indicate colors. It is inconvenient to try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/andrew/.rvm/gems/ruby-1.9.2-p180@railstut/gems/spork-0.8.5/lib/spork/forker.rb:50: [BUG] pthread_mutex_lock: Invalid argument (EINVAL) | |
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.8.0] | |
-- control frame ---------- | |
c:0012 p:---- s:0045 b:0045 l:000044 d:000044 CFUNC :raise | |
c:0011 p:0083 s:0041 b:0041 l:000770 d:000770 METHOD /Users/andrew/.rvm/gems/ruby-1.9.2-p180@railstut/gems/spork-0.8.5/lib/spork/forker.rb:50 | |
c:0010 p:0055 s:0037 b:0037 l:000a10 d:000a10 METHOD /Users/andrew/.rvm/gems/ruby-1.9.2-p180@railstut/gems/spork-0.8.5/lib/spork/run_strategy/forking.rb:17 | |
c:0009 p:0023 s:0031 b:0031 l:000030 d:000030 METHOD /Users/andrew/.rvm/gems/ruby-1.9.2-p180@railstut/gems/spork-0.8.5/lib/spork/server.rb:47 | |
c:0008 p:0098 s:0025 b:0025 l:000024 d:000024 METHOD /Users/andrew/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/drb/drb.rb:1558 | |
c:0007 p:0146 s:0021 b:0021 l:000020 d:000020 METHOD /Users/andrew/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/drb/drb.rb:1518 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# building separately... | |
$ java -jar scripts/build-mailing-create/tools/closure-compiler/compiler.jar --warning_level QUIET media/js/mailing-create/e2ma/e2ma.save.js --js_output_file e2ma.save.min.js | |
$ java -jar scripts/build-mailing-create/tools/closure-compiler/compiler.jar --warning_level QUIET media/js/mailing-create/e2ma/e2ma.js --js_output_file e2ma.min.js | |
$ cat e2ma.save.min.js e2ma.min.js >| all1.js | |
# building all-at-once... | |
$ java -jar scripts/build-mailing-create/tools/closure-compiler/compiler.jar --warning_level QUIET --js media/js/mailing-create/e2ma/e2ma.save.js --js media/js/mailing-create/e2ma/e2ma.js --js_output_file all2.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script id="template-item" type="text/html"> | |
<li class="template e2ma-get-new-template" data-id="${id}" data-name="${name}"> | |
<span><img src="${image}" alt="${name}" title="${name}" /></span> | |
<p>${name}</p> | |
</li> | |
</script> |
OlderNewer