Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am yfrancis on github.
  • I am yfrancis (https://keybase.io/yfrancis) on keybase.
  • I have a public key whose fingerprint is B01E 3E73 660F DD8D B520 EBCC 0C7C B946 969C 8FF8

To claim this, I am signing this object:

#define ASSOCIATED_PROPERTY(Type, getter, setter, key, association) \
static char key;\
%new -(void)setter:(Type)val{objc_setAssociatedObject(self, &key, val, association);}\
%new -(Type)getter{return objc_getAssociatedObject(self, &key);}
{
"cmd": ["make"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path:${folder:${file_path}}}",
"selector": "source.makefile",
"target": "multi_task_exec",
"variants":
[
{
{"sports" :[{"name" :"basketball","id" :40,"leagues" :[{"name" :"National Basketball Assoc.","abbreviation" :"nba","id" :46,"groupId" :7,"shortName" :"NBA","teams" :[{"id" :1,"location" :"Atlanta","name" :"Hawks","abbreviation" :"ATL","color" :"002B5C","links" :{"api" :{"teams" :{"href" :"http://api.espn.com/v1/sports/basketball/nba/teams/1"},"news" :{"href" :"http://api.espn.com/v1/sports/basketball/nba/teams/1/news"},"notes" :{"href" :"http://api.espn.com/v1/sports/basketball/nba/teams/1/news/notes"}},"web" :{"teams" :{"href" :"http://espn.go.com/nba/team/_/name/atl/atlanta-hawks?ex_cid=espnapi_public"}},"mobile" :{"teams" :{"href" :"http://m.espn.go.com/nba/clubhouse?teamId=1&ex_cid=espnapi_public"}}}},{"id" :2,"location" :"Boston","name" :"Celtics","abbreviation" :"BOS","color" :"006532","links" :{"api" :{"teams" :{"href" :"http://api.espn.com/v1/sports/basketball/nba/teams/2"},"news" :{"href" :"http://api.espn.com/v1/sports/basketball/nba/teams/2/news"},"notes" :{"href" :"http://api.espn.com/v1/sports/ba
xcrun -sdk iphoneos g++ -L/Users/francis/Developer/theos/lib -lsqlite3 -FFrameworks -framework Gremlin -lsubstrate -lobjc -framework Foundation -framework CoreFoundation -framework UIKit -framework MusicLibrary -framework CoreAudio -framework AVFoundation -framework CoreGraphics -framework CoreMedia -framework AudioToolbox -framework QuartzCore -framework CoreText -framework CoreImage -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/PrivateFrameworks -framework AppSupport -dynamiclib -install_name "/Library/ActionMenu/Plugins/Rinngo.dylib" -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" -arch armv6 -arch armv7 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_5_0 -miphoneos-version-min=5.0 -multiply_defined suppress -o "obj/Rinngo.dylib.unsigned" obj/RNGremlinClient.m.o obj/RNPlayButton.m.o obj/RNRingtoneViewController.m.o obj/RNStartupAnimationLayer.m.o obj/RNTrackBackground
[~THEOS]$ bin/bootstrap.sh substrate [master]
Bootstrapping CydiaSubstrate...
Compiling iPhoneOS CydiaSubstrate stub... default target? failed, forcing 2.0? failed, forcing 3.0? failed, forcing 3.2? failed, forcing 4.0 for 3.0? failed, forcing 4.2 for 3.0? failed, forcing 4.0? failed, forcing 4.2? failed, what?
Compiling native CydiaSubstrate stub...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/francis/Dropbox/Developer/ios/build//obj/macosx/CydiaSubstrate (No such file or directory)
make[2]: *** [after-CydiaSubstrate-all] Error 1
make[1]: *** [CydiaSubstrate.all.framework.variables] Error 2
make: *** [CydiaSubstrate] Error 2
cp: obj/macosx/CydiaSubstrate: No such file or directory
cp: libsubstrate.dylib: No such file or directory
[~THEOS]$ bin/bootstrap.sh [master]
[~THEOS]$ l lib/ [master]
total 0
-rw-rw-r-- 1 francis staff 0 Oct 23 11:23 .keep
[~THEOS]$ l include [master]
total 12K
-rw-rw-r-- 1 francis staff 769 Oct 23 11:23 DHCommon.h
-rw-rw-r-- 1 francis staff 4.8K Oct 23 11:23 DHHookCommon.h
[~THEOS]$
void
WSRelease(WSTypeRef obj)
{
WSIndex orig = obj->retainCount;
while (!OSAtomicDecrement32Barrier((int32_t*)&obj->retainCount));
if (orig == 1 && !obj->retainCount)
free(obj);
}
main.mm:3:22: error: expected '(' for function-style cast or type construction
NSNumber* x = @(int)5;
~~~^
override _THEOS_STAGING_RULES_LOADED := 1
include $(THEOS_MAKE_PATH)/framework.mk
BugSense.stage.framework.variables: ;
internal-stage:: ;