Skip to content

Instantly share code, notes, and snippets.

@mook
mook / caller.cpp
Created October 10, 2012 04:25
temp
nsRefPtr<sbRunnable_<nsresult>> job =
new sbRunnableXPCOMMethod3_<nsresult,nsIObserverService,
nsISupports*,const char*,const PRUnichar*>(
mObserverService,&nsIObserverService::NotifyObservers,
this,"service-ready",serviceContractID.get());
NS_DispatchToMainThread(job);
rv = job->Wait();
NS_ENSURE_SUCCESS(rv, rv);
@mook
mook / temp
Created October 10, 2012 04:24
temp
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 :miv */
/*
*=BEGIN SONGBIRD GPL
*
* This file is part of the Songbird web player.
*
* Copyright(c) 2005-2010 POTI, Inc.
* http://www.songbirdnest.com
*
@mook
mook / gist:867723
Created March 13, 2011 00:05 — forked from aikar/gist:867710
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@-moz-document url(chrome://komodo/content/komodo.xul) {
#topview tabs > vbox,
#topview tabs .tabstrip-box,
#topview tabs .tab-arrowscrollbox,
#topview tabs .tab-arrowscrollbox > scrollbox,
#topview tabs .scrollbox-innerbox {
display: block !important;
}
<style>
.result {
width: 35px;
height: 35px;
}
.col-header, .row-header {
font-weight: bold;
}