Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/proxyClient.js b/src/proxyClient.js
index 3fc8313..2decd1a 100644
--- a/src/proxyClient.js
+++ b/src/proxyClient.js
@@ -3,6 +3,8 @@
// utils
+var hasWorkerCanvas = "WorkerCanvas" in window;
+
@0000 B111 // LLB R1, 0x11
@0001 A111 // LHB R1, 0x11
@0002 B222 // LLB R2, 0x22
@0003 A222 // LHB R2, 0x22
@0004 B333 // LLB R3, 0x33
@0005 A333 // LHB R3, 0x33
@0006 B444 // LLB R4, 0x44
@0007 A444 // LHB R4, 0x44
@0008 B555 // LLB R5, 0x55
@0009 A555 // LHB R5, 0x55
@0000 B111 // LLB R1, 0x11
@0001 A111 // LHB R1, 0x11
@0002 B222 // LLB R2, 0x22
@0003 A222 // LHB R2, 0x22
@0004 B333 // LLB R3, 0x33
@0005 A333 // LHB R3, 0x33
@0006 B444 // LLB R4, 0x44
@0007 A444 // LHB R4, 0x44
@0008 B555 // LLB R5, 0x55
@0009 A555 // LHB R5, 0x55
@0000 B111 // LLB R1, 0x11
@0001 A111 // LHB R1, 0x11
@0002 B222 // LLB R2, 0x22
@0003 A222 // LHB R2, 0x22
@0004 B333 // LLB R3, 0x33
@0005 A333 // LHB R3, 0x33
@0006 B444 // LLB R4, 0x44
@0007 A444 // LHB R4, 0x44
@0008 B555 // LLB R5, 0x55
@0009 A555 // LHB R5, 0x55
struct Symbol {
text: ~str,
usage: uint
}
struct SymbolStore {
// key should be a reference to the str owned by Symbol::text
// value should be a reference to the Symbol owned by the vec below
map: HashMap<str, Symbol>,
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.049 0.049 /Users/jonanin/dev/SwoopSearch/aptsite/views.py:49(ajax_get_results)
6 0.000 0.000 0.020 0.003 /Users/jonanin/dev/SwoopSearch/env/lib/python2.7/site-packages/django/db/backends/util.py:36(execute)
7 0.000 0.000 0.020 0.003 /Users/jonanin/dev/SwoopSearch/env/lib/python2.7/site-packages/MySQLdb/cursors.py:164(execute)
6 0.000 0.000 0.020 0.003 /Users/jonanin/dev/SwoopSearch/env/lib/python2.7/site-packages/django/db/backends/mysql/base.py:112(execute)
7 0.000 0.000 0.020 0.003 /Users/jonanin/dev/SwoopSearch/env/lib/python2.7/site-packages/MySQLdb/cursors.py:343(_query)
1 0.000 0.000 0.020 0.020 /Users/jonanin/dev/SwoopSearch/aptsite/views.py:136(get_search_results)
1 0.000 0.000 0.019 0.019 /Users/jonanin/dev/SwoopSearch/search/parsing.py:43(parse
ncalls tottime percall cumtime percall filename:lineno(function)
16 0.000 0.000 0.000 0.000 <string>:8(__new__)
1 0.000 0.000 0.000 0.000 Cookie.py:573(__init__)
7 0.000 0.000 0.000 0.000 __init__.py:108(get_auth_header)
10 0.000 0.000 0.777 0.078 __init__.py:1110(debug)
3 0.000 0.000 0.688 0.229 __init__.py:1122(info)
251 0.000 0.000 0.000 0.000 __init__.py:1164(get_internal_type)
42 0.000 0.000 0.000 0.000 __init__.py:118(<genexpr>)
7 0.000 0.000 0.000 0.000 __init__.py:1197(findCaller)
7 0.000 0.000 0.000 0.000 __init__.py:1218(makeRecord)
for instrs.each {|i|
bytes += instruction_bytes(i)
};
for instrs.each {|i|
bytes += instruction_bytes(i);
};
@jamorton
jamorton / gist:2323601
Created April 6, 2012 22:37
Rust Lexer for pygments
class RustLexer(RegexLexer):
"""
Lexer for Mozilla's Rust programming language
"""
name = 'Rust'
filenames = ['*.rs', '*.rc']
aliases = ['rust']
mimetypes = ['text/x-rustsrc']
@jamorton
jamorton / gist:2323598
Created April 6, 2012 22:35
Pygments Test File
/** Comment
Thing / * * /
*/ /* */
// /* test
// TEST
// \\ / Comment \/ // */