I hereby claim:
- I am reflog on github.
- I am reflog (https://keybase.io/reflog) on keybase.
- I have a public key whose fingerprint is A49F 52F6 1BFF AE5D 9625 1E92 39EB 7E22 3BD7 F040
To claim this, I am signing this object:
- (BOOL) killerMethod { | |
return TRUE; | |
} | |
- (id) init { | |
Class z = objc_getClass("Victim"); | |
Method orig = class_getInstanceMethod(z, @selector(victimMethod)); | |
Method repl = class_getInstanceMethod([self class], @selector(killerMethod)); | |
method_exchangeImplementations(orig, repl); |
void setupWindowWithoutStatusBar(QWidget* w){ | |
NSView* view = (NSView*) w->winId(); | |
NSWindow* win = [view window ]; | |
[win setShowsResizeIndicator:FALSE]; | |
NSUInteger mask = [win styleMask]; | |
[win setStyleMask:mask | ~NSResizableWindowMask]; | |
} |
#ifndef Q_OS_MAC | |
setWindowIcon( QIcon(":/windowIcon") ); | |
#else | |
myAction->setMenuRole(QAction::ApplicationSpecificRole); | |
#endif |
#define SYNTESIZE_TRACE(X) \ | |
@interface Trace##X : X { \ | |
} \ | |
@end \ | |
\ | |
@implementation Trace##X\ | |
\ | |
- (id)retain {\ | |
NSUInteger oldRetainCount = [super retainCount];\ | |
id result = [super retain];\ |
import sys, urllib2,json | |
Base = 'http://xkcd.com/' | |
Tail = 'info.0.json' | |
def main(): | |
n = int(sys.argv[1]) | |
k = int(sys.argv[2]) | |
out = open("out3.html","w") | |
out.write("<html><body>\n") |
#adding qrc resources compilation | |
import xml.dom.minidom | |
qtResourceFile = [] | |
for q in ("GUI.qrc", "UI/UI.qrc",): | |
baseq = os.path.basename(q)[:-4] | |
qrcdeps = [] | |
qrc = programEnv['ENV']['PWD'] + "/GUI/" + q | |
dir = os.path.dirname(qrc) | |
x = xml.dom.minidom.parse(open(qrc)) |
import re, urllib2,sys | |
k = 0 | |
for i in range(7,0,-1): | |
page_url = "http://theoatmeal.com/comics_pg/page:%d"%i | |
out = open("oatmeal\\out%d.html"%i,"w") | |
out.write("<html><body>\n") | |
print "getting " + page_url | |
f = urllib2.urlopen(page_url) | |
a = f.read() | |
results = [] |
QPalette pal = QApplication::palette(); | |
pal.setColor(QPalette::Disabled, QPalette::Text, QColor(80, 80, 80)); | |
pal.setColor(QPalette::Disabled, QPalette::Light, QColor(0, 0, 0, 0)); | |
QApplication::setPalette(pal); |
sync2 |
I hereby claim:
To claim this, I am signing this object: