Skip to content

Instantly share code, notes, and snippets.

View kevinw's full-sized avatar

Kevin Watters kevinw

View GitHub Profile
@kevinw
kevinw / bidenemail
Created October 28, 2010 17:46
joe biden email
Kevin --
There's only one way to wake up the morning after an election -- with no regrets.
There's only one way to be sure that's how you wake up on November 3rd: giving everything you've got in the last five days.
That's why I'm out there day after day, doing exactly what you're doing -- talking to voters.
These kinds of conversations are the most effective thing we can do in a campaign -- you know it. I know it. They're how we brought change to this country after years of Republican malarkey. They're how we won the White House.
1 block, cream cheese
1 tub, cottage cheese
1 cup, sugar
1 box, graham crackers
3 eggs
several large swirls, nutella
voila, nutella cheesecake
C:\Users\Kevin\src\pypy\fast-foward>svn info
Path: .
URL: http://codespeak.net/svn/pypy/branch/fast-forward
Repository Root: http://codespeak.net/svn
Repository UUID: fd0d7bf2-dfb6-0310-8d31-b7ecfe96aada
Revision: 79657
Node Kind: directory
Schedule: normal
Last Changed Author: afa
Last Changed Rev: 79564
@kevinw
kevinw / gist:720832
Created November 29, 2010 23:28
python translate.py -Ojit
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "translate.py", line 290, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File "C:\Users\Kevin\src\pypy\fast-foward\pypy\translator\driver.py", line 812, in proceed
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR] File "C:\Users\Kevin\src\pypy\fast-foward\pypy\translator\tool\taskengine.py", line 116, in _execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File "C:\Users\Kevin\src\pypy\fast-foward\pypy\translator\driver.py", line 288, in _do
[translation:ERROR] res = func()
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "translate.py", line 290, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File "C:\Users\Kevin\src\pypy\fast-foward\pypy\translator\driver.py", line 812, in proceed
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR] File "C:\Users\Kevin\src\pypy\fast-foward\pypy\translator\tool\taskengine.py", line 116, in _execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File "C:\Users\Kevin\src\pypy\fast-foward\pypy\translator\driver.py", line 288, in _do
[translation:ERROR] res = func()
@kevinw
kevinw / gist:723949
Created December 1, 2010 18:21
python.exe translate.py -Ojit on windows
C:\Users\Kevin\src\pypy\fast-foward\pypy\translator\goal>\python26\python.exe translate.py -Ojit
[translation:info] Translating target as defined by targetpypystandalone
[platform:msg] Updated environment with c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat
[platform:msg] Setting platform to 'host' cc=None
[platform:execute] cl.exe /nologo /c /MD /O2 c:\users\kevin\appdata\local\temp\usession-fast-forward-5\gcctest.c /Foc:\users\kevin\appd
ata\local\temp\usession-fast-forward-5\gcctest.obj
[platform:execute] link.exe /nologo c:\users\kevin\appdata\local\temp\usession-fast-forward-5\gcctest.obj /out:c:\users\kevin\appdata\l
ocal\temp\usession-fast-forward-5\gcctest.exe /incremental:no /MANIFEST /MANIFESTFILE:c:\users\kevin\appdata\local\temp\usession-fast-f
orward-5\gcctest.manifest
[platform:execute] mt.exe -nologo -manifest c:\users\kevin\appdata\local\temp\usession-fast-forward-5\gcctest.manifest -outputresource:
[Timer] Timings:
[Timer] annotate --- 1149.3 s
[Timer] rtype_lltype --- 644.5 s
[Timer] pyjitpl_lltype --- 948.6 s
[Timer] backendopt_lltype --- 417.1 s
[Timer] stackcheckinsertion_lltype --- 64.9 s
[Timer] database_c --- 546.6 s
[Timer] source_c --- 1033.0 s
[Timer] compile_c --- 689.7 s
[Timer] ===========================================
<html>
<head>
<script>
var natcompare = (function() {
var isWhitespaceChar = function(a)
{
var charCode;
charCode = a.charCodeAt(0);
if ( charCode <= 32 )
def nameof(obj):
'''
if obj is referenced strongly in another object's __dict__, give its attribute name.
'''
for r in gc.get_referrers(obj):
for r2 in gc.get_referrers(r):
if r is getattr(r2, '__dict__', object()):
for k, v in r.iteritems():
if v is obj:
def main2():
from tests.testapp import testapp
from gui import skin
with testapp(plugins=False):
f = wx.Frame(None)
p = wx.Panel(f)
c = wx.CheckBox(p, -1, 'Test')
margins = skin.ZeroMargins
def layout():
sz = wx.BoxSizer(wx.VERTICAL)