Skip to content

Instantly share code, notes, and snippets.

Steven Troughton-Smith steventroughtonsmith

Block or report user

Report or block steventroughtonsmith

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
steventroughtonsmith / Add Web
Created Jan 13, 2016
Insert a custom browser tab into Pythonista
View Add Web
# coding: utf-8
from Foundation import *
from QuartzCore import *
from UIKit import *
import console
WKWebView = ObjCClass('WKWebView')
steventroughtonsmith /
Last active May 29, 2019
UIKit+UIFoundation & Foundation for Pythonista - autoconverted from SDK tbd (includes non-public SPI)
# coding: utf-8
from objc_util import *
NSAKDeserializer = ObjCClass('NSAKDeserializer')
NSAKDeserializerStream = ObjCClass('NSAKDeserializerStream')
NSAKSerializer = ObjCClass('NSAKSerializer')
NSAKSerializerStream = ObjCClass('NSAKSerializerStream')
NSAbstractLayoutGuide = ObjCClass('NSAbstractLayoutGuide')
NSAddressCheckingResult = ObjCClass('NSAddressCheckingResult')
NSAffineTransform = ObjCClass('NSAffineTransform')
steventroughtonsmith / charts.html
Last active Nov 1, 2015
AppleTV App Store Charts US Nov 1 2015
View charts.html
<head><style>table {margin: -10px} img {width: 160px; height:96px; margin: 5px; border-radius: 15px;}</style></head><body bgColor=lightgrey></body><h3> Paid Apps</h3><p><table width="600" bgcolor="lightgrey"><tbody><tr><td width="50">1)</td><td width="160"><p><img src=""></p></td><td>$9.99 <a href="">Beat Sports</a><p>★★★★✩</p></td></tr></tbody></table></p><p><table width="600" bgcolor="#bdbdbd"><tbody><tr><td width="50">2)</td><td width="160"><p><img src=""></p></td><td>$2.99 <a href="">SimpleX - for Plex</a><p>★★★✩✩</p></td></tr></tbody></table></p><p><table width="600" bgcolor="lightgrey"><tbody><tr><td width="50">3)</td><td width="160"><p><img src="http://
steventroughtonsmith / gist:6788b6c340a0aa52345a
Created Oct 27, 2015
Run OS X Screen Saver as Wallpaper
View gist:6788b6c340a0aa52345a
/System/Library/Frameworks/ScreenSaver.framework/Resources/ -background
steventroughtonsmith / Tweak.xm
Created Oct 14, 2015
iOS 9 Enable Splitscreen Jailbreak Tweak (Theos)
View Tweak.xm
/* How to Hook with Logos
Hooks are written with syntax similar to that of an Objective-C @implementation.
You don't need to #include <substrate.h>, it will be done automatically, as will
the generation of a class list and an automatic constructor.
%hook ClassName
// Hooking a class method
+ (id)sharedInstance {
steventroughtonsmith / wwdc15sessionlister.m
Last active Dec 3, 2015
WWDC 15 Session Video Lister
View wwdc15sessionlister.m
// main.m
// wwcd15sessionlister
// Created by Steven Troughton-Smith on 10/06/2015.
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
View gist:44a0587f0490b0cfecd1
View Demangle
import subprocess
def looksLikeBeginning(doc,seg,adr):
if doc.is64Bits() and seg.readByte(adr) == 0x55 and seg.readByte(adr + 1) == 0x48 and seg.readByte(adr + 2) == 0x89 and seg.readByte(adr + 3) == 0xE5:
return True
if not doc.is64Bits() and seg.readByte(adr) == 0x55 and seg.readByte(adr + 1) == 0x89 and seg.readByte(adr + 2) == 0xE5:
return True
return False
doc = Document.getCurrentDocument()
steventroughtonsmith / Makefile
Created Jan 19, 2015
Pascal:Mac Linker Error
View Makefile
# Requires and an
# install of MPW in the emulator's root (~/mpw)
# Uses modern (Xcode) version of Rez
# Location of your mpw binary
View DAHeader.c
* Copyright Apple Computer, Inc. 1986, 1987
* All Rights Reserved
extern int OpenDA();
extern int CloseDA();
extern int ActionDA();
extern int InitDA();
You can’t perform that action at this time.