This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#********************************************************************** | |
# 09.07 | |
# 2020年9月7日23:29:32 | |
# 转载需要注明版权和来源 | |
# | |
# 屏蔽常用网站、视频、手机rom广告&运营商劫持广告&数据跟踪&开屏广告 | |
# | |
# 参照lhie1的surge规则改编,致谢!! https://github.com/lhie1/Surge | |
# 参照scomper的surge规则改编,致谢!! https://gist.github.com/scomper/915b04a974f9e11952babfd0bbb241a8/revisions | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTION = build | |
AD_HOC_CODE_SIGNING_ALLOWED = NO | |
ALTERNATE_GROUP = staff | |
ALTERNATE_MODE = u+w,go-w,a+rX | |
ALTERNATE_OWNER = grantdavis | |
ALWAYS_SEARCH_USER_PATHS = NO | |
ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
APPLE_INTERNAL_DIR = /AppleInternal | |
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// Interactive Animated Presentation | |
// "Visor" Effect | |
// | |
import UIKit | |
class ViewController: UIViewController { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun simctl status_bar <device> [list | clear | override <override arguments>] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public protocol NamespaceWrappable { | |
associatedtype T | |
var ex: T { get } | |
static var ex: T.Type { get } | |
} | |
extension NamespaceWrappable { | |
public var ex: TypeWrapper<Self> { | |
return TypeWrapper(value: self) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 我的命令库 | |
# 编辑命令 | |
sg-cmdedit() { | |
subl ~/Documents/sugarbash.sh | |
} | |
# 重新加载命令 | |
sg-cmdreload() { | |
source ~/Documents/sugarbash.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) { | |
objc_msgSend([UIDevice currentDevice], @selector(setOrientation:), newOrientation); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Escape code | |
esc=`echo -en "\033"` | |
# Set colors | |
cc_red="${esc}[0;31m" | |
cc_green="${esc}[0;32m" | |
cc_yellow="${esc}[0;33m" | |
cc_blue="${esc}[0;34m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface Person : NSObject | |
@property (nonatomic, copy) NSMutableArray *friendNames; | |
@end | |
@implementation Person | |
- (id)init{ | |
self = [super init]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo xcode-select -switch /Applications/Xcode.app |
NewerOlder