This file contains hidden or 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
[86efafb9d4101] {jit-log-opt-loop | |
# Loop 0 (each at LOAD_DEREF) : loop with 134 ops | |
[p0, p1] | |
+33: i2 = getfield_gc(p1, descr=<FieldS topaz.frame.Frame.inst_stackpos 60>) | |
+39: p3 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_w_self 64>) | |
+42: p4 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_lastblock 40>) | |
+45: p5 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_lexical_scope 44>) | |
+48: p6 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_parent_interp 52>) | |
+51: p7 = getfield_gc(p1, descr=<FieldP topaz.frame.Frame.inst_block 24>) | |
+57: i8 = getfield_gc(p1, descr=<FieldS topaz.frame.Frame.inst_last_instr 36>) |
This file contains hidden or 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
import time | |
import os | |
from pypy.rpython.tool import rffi_platform | |
from pypy.rpython.lltypesystem import rffi, lltype | |
from pypy.translator.tool.cbuild import ExternalCompilationInfo | |
from rupypy.module import ClassDef | |
from rupypy.objects.objectobject import W_Object | |
from rupypy.objects.exceptionobject import W_ArgumentError |
This file contains hidden or 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
# require 'benchmark' | |
# Algorithm based on "Introduction to Algorithms" by Cormen and others | |
class RedBlackTree | |
class Node | |
attr_accessor :color | |
attr_accessor :key | |
attr_accessor :left | |
attr_accessor :right | |
attr_accessor :parent |
This file contains hidden or 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
[translation:ERROR] Error: | |
[translation:ERROR] Traceback (most recent call last): | |
[translation:ERROR] File "../pypy/pypy/translator/goal/translate.py", line 308, in main | |
[translation:ERROR] drv.proceed(goals) | |
[translation:ERROR] File "/home/tim/Devel/projects/pypy/pypy/pypy/translator/driver.py", line 791, in proceed | |
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip()) | |
[translation:ERROR] File "/home/tim/Devel/projects/pypy/pypy/pypy/translator/tool/taskengine.py", line 116, in _execute | |
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) | |
[translation:ERROR] File "/home/tim/Devel/projects/pypy/pypy/pypy/translator/driver.py", line 285, in _do | |
[translation:ERROR] res = func() |
This file contains hidden or 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
a, b, c = 0 | |
t = 4 | |
case t | |
when (a = 3), (b = 4), (c = 5) | |
# puts 1 | |
end | |
puts a, b, c |
This file contains hidden or 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
class TfsWatcher | |
def initialize(directory, host, port, recurse) | |
@i = Inotify.new | |
@f = Fam.new | |
@f.protocol "FAM" | |
@f.open host, port | |
recurse ? Find.find(directory) {|dir| add(dir) } : add(directory) | |
end |
This file contains hidden or 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
RPApplication subclass: #TestApp | |
instanceVariableNames: '' | |
classVariableNames: '' | |
poolDictionaries: '' | |
category: 'TestApp'. | |
echoSomething | |
<get: '/'> | |
self error: 'Shows error info about me'. |
This file contains hidden or 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
export PATH=/usr/bin:/bin |
This file contains hidden or 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
echo "You have 10 seconds, then I'll start and take $[$1 + 1] screenshots and press space $1 times" | |
sleep 10 | |
/usr/bin/import -window root "screen_0.jpg" | |
for i in `seq -w 1 $1`; do | |
xdotool key space | |
sleep 3 | |
/usr/bin/import -window root "screen_${i}.jpg" | |
done | |
convert "screen_*.jpg" presentation_to_pdf.pdf | |
rm screen_*.jpg |