Public Gists by kevinw

Gravatar
Mon Nov 09 07:36:40 -0800 2009
1
2
3
typedef void MainThreadFunction(void*);
 
void callOnMainThread(MainThreadFunction*, void* context);
Gravatar
Tue Oct 06 12:26:48 -0700 2009
1
2
3
<typename Value, typename HashFunctions, typename Traits>
<typename T, typename HashTranslator>
<typename HashSet<Value, HashFunctions, Traits>::iterator, bool>
Gravatar
Thu Sep 03 15:14:03 -0700 2009
1
2
3
from traceback import print_exc
 
class debug_property(object):
Gravatar
Wed Sep 02 11:58:45 -0700 2009
1
2
3
static Mutex* sharedResourceMutex(curl_lock_data data) {
    DEFINE_STATIC_LOCAL(Mutex, cookieMutex, ());
    DEFINE_STATIC_LOCAL(Mutex, dnsMutex, ());
Gravatar
Fri Jun 19 10:38:17 -0700 2009
1
2
3
<!doctype html>
<html>
    <head>
gist: 89218 googletest leak checker
Gravatar
Thu Apr 02 07:31:15 -0700 2009
1
2
3
#ifndef MemLeakCheckingTest_h
#define MemLeakCheckingTest_h
 
Gravatar
Tue Mar 17 09:11:34 -0700 2009
1
2
3
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from functools import partial
from StringIO import StringIO
Gravatar
Sun Feb 08 14:03:45 -0800 2009
1
2
3
web content in growl-like popup notifications
=============================================
 
Gravatar
Fri Dec 19 09:57:12 -0800 2008
1
2
3
void Layer::renderContent(GraphicsContext* cr)
{
    ANIM_ASSERT(isPresentation());
Gravatar
Thu Nov 20 07:18:54 -0800 2008
1
2
3
class ScreenHDC
{
public:
Gravatar
Wed Nov 19 10:22:09 -0800 2008
1
2
3
bool ThreadCondition::timedWait(Mutex& mutex, double secondsToWait)
{
    if (secondsToWait < 0.0) {
Gravatar
Mon Nov 17 15:58:27 -0800 2008
1
2
3
  GdiPlus.dll!DpOutputBilinearSpan_Identity::OutputSpan() + 0x4692f bytes
  GdiPlus.dll!DpClipRegion::OutputSpan() + 0x69 bytes
  GdiPlus.dll!StretchBitsMainLoop() + 0x32 bytes
Gravatar
Fri Nov 14 10:30:59 -0800 2008
1
2
3
        cl /c /nologo /TP /Fovc_mswuhdll\coredll_graphicc.obj /MD /DWIN32 /Fd
..\..\lib\vc_dll\wxmsw28uh_core_vc.pdb /O2 /D__WXMSW__ /DwxNO_EXCEPTIONS
  /D_UNICODE /DwxUSE_GRAPHICS_CONTEXT=1 /I..\..\lib\vc_dll\mswuh /I..\..\inclu
Gravatar
Mon Sep 22 08:10:55 -0700 2008
1
2
3
> wxwebkit.dll!WebCore::ContainerNode::attach() Line 652 + 0xa bytes C++
  wxwebkit.dll!WebCore::Element::attach() Line 719 C++
  wxwebkit.dll!WebCore::Element::recalcStyle(WebCore::Node::StyleChange change=NoChange) Line 761 C++
Gravatar
Tue Aug 26 09:28:47 -0700 2008
1
2
3
bool wxTopLevelWindowMSW::Show(bool show)
{
    // don't use wxWindow version as we want to call DoShowWindow() ourselves
Gravatar
Tue Jul 22 13:33:55 -0700 2008
1
2
3
def logistic(x, mu = 9):
    'Smoothing function (s curve).'