Skip to content

Instantly share code, notes, and snippets.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Input Source Pro [83888]
Path: /Applications/Input Source Pro.app/Contents/MacOS/Input Source Pro
Identifier: com.runjuu.Input-Source-Pro
Version: 2.1.1-beta (316)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
// Include https://github.com/steipete/Aspects in your project
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[UIButton aspect_hookSelector:@selector(touchesEnded:withEvent:) withOptions:AspectPositionAfter usingBlock:^(id<AspectInfo> info) {
UIButton *button = [info instance];
UIView *topMostView = button.window.subviews.firstObject;
[self logSubviews:topMostView];
} error:nil];
return YES;
@luosheng
luosheng / gist:ea8b0e91c9f0bd1e5245
Created July 24, 2014 02:48
Font with fallback
UIFontDescriptor *fontDescriptor = [UIFontDescriptor fontDescriptorWithFontAttributes:@{
UIFontDescriptorNameAttribute: @"SourceSansPro-Regular",
UIFontDescriptorCascadeListAttribute:
@[
[UIFontDescriptor fontDescriptorWithFontAttributes:@{ UIFontDescriptorNameAttribute: @"Hiragino Sans GB W3" }]
]
}];
});
UIFont *font = [UIFont fontWithDescriptor:fontDescriptor size:pointSize];
@luosheng
luosheng / Gemfile
Last active December 11, 2015 04:49
178 downloader
source 'https://rubygems.org/'
gem 'nokogiri'
gem 'execjs'
gem 'em-synchrony'
gem 'em-http-request'
@luosheng
luosheng / default.custom.yaml
Created May 18, 2012 05:58
鼠须管中加入五笔
# 在 ~/Library/Rime 下建立 default.custom.yaml,输入如下内容,然后在菜单栏点「重新部署」
patch:
schema_list:
- schema: wubi86