This file contains hidden or 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
// Objective-C | |
- (UIImage *)getCurrentLaunchImage { | |
CGSize screenSize = [UIScreen mainScreen].bounds.size; | |
NSString *interfaceOrientation = nil; | |
if (([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortraitUpsideDown) || | |
([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortrait)) { | |
interfaceOrientation = @"Portrait"; | |
} else { | |
interfaceOrientation = @"Landscape"; |
This file contains hidden or 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 | |
# -------------------------------------------------------------- | |
# iOSOpenDev -- iOS Open Development (http://www.iOSOpenDev.com) | |
# Copyright (C) 2012 Spencer W.S. James <dev@iosopendev.com> | |
# -------------------------------------------------------------- | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |
This file contains hidden or 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
;~ 热键全局开关 | |
F12::suspend | |
!x::run,C:\Users\acer\AppData\Local\Google\Chrome\Application\chrome.exe | |
!m::run,D:\Program Files (x86)\Mozilla Firefox\firefox.exe | |
!i::run,C:\Program Files (x86)\Internet Explorer\iexplore.exe | |
!o::run,D:\Program Files (x86)\Opera\opera.exe | |
;~ !c::run,D:\Program Files\goagent-goagent-546de84\local\goagent.exe | |
;~ !z::run,D:\Program Files\HideDesktopIcons.exe |
This file contains hidden or 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
[Proxy] | |
WIFI = direct, interface=en2 | |
VPN = direct, interface=utun0 | |
[Rule] | |
DOMAIN-SUFFIX,yach.me,WIFI | |
FINAL,VPN |
This file contains hidden or 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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# @author weishu @2015/12/7 | |
import subprocess | |
import os | |
import re | |
import json |
This file contains hidden or 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
[General] | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
# dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
dns-server = 114.114.114.114, 114.114.115.115 | |
loglevel = notify | |
[Proxy] | |
Proxy = http,1,2 |
This file contains hidden or 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
[General] | |
loglevel = notify | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24 | |
[Proxy] | |
// ADD YOUR PROXY HERE, DON'T FORGET TO REMOVE # | |
# Proxy = http,$IP,$PORT,$USERNAME,$PASSWORD | |
# Proxy = https,$IP,$PORT,$USERNAME,$PASSWORD |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
void method1(NSArray *numbers) | |
{ | |
NSArray *sorted = [numbers sortedArrayUsingSelector:@selector(compare:)]; | |
} | |
void method2(NSArray *numbers) | |
{ | |
NSNumber *max=[numbers valueForKeyPath:@"@max.doubleValue"]; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Switch Input Source</name> | |
<appendix>Use the right Option key to select the next input source</appendix> | |
<identifier>private.switch_input_source_with_right_option</identifier> | |
<autogen>--KeyToKey-- KeyCode::OPTION_R, KeyCode::SPACE, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen> | |
</item> | |
<item> |