- 發包來源
- 專案簡介
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
if (self = [super init]) { | |
} | |
return self; | |
// -> | |
self = [super init]; | |
if (self) { | |
} | |
return self; |
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
########################################## | |
# | |
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
# | |
# Version 2.7 | |
# | |
# Latest Change: | |
# - Supports iPhone 5 / iPod Touch 5 (uses Apple's workaround to lipo bug) | |
# | |
# Purpose: |
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
;; (advice-add 'list-packages :around | |
;; #'(lambda (orig-fun &rest args) | |
;; (paradox-list-packages args)) | |
;; '((name . "paradox-list-packages-on-advice"))) | |
;; paradox-list-packages will use list-packages, this will get error. | |
(defun superbil/list-package () | |
"When `paradox-list-packages' existed, use it." | |
(if (functionp 'paradox-list-packages) | |
(paradox-list-packages nil) |
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
......... ..... . ..... ...... . .... . . . | |
............... ....... . ... . .. . . | |
.... . ......................,kd;... .. . .. . ... . | |
. .. ...................dodkKkdc:;. .. .. . . ........ | |
. ..... .....................ldOoc;c;.;:,... . .. .. .... ................ | |
. ..'..... .. ............ .;col;'ll;.:',l' . .. .. . ........,'':ccdoll |
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
/*XXXXXXXXXNXNNXXXXXNNNNNNNNNXKxoloodddddx0XXk0XXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXXXXNNNNNNXKkdlccllccllccloodOdddxk0KKXXXNNNNNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXXXXXXXKxc,.''',,;;;,,'....,,'''.,',cdxO0KXNNNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXXXXXx:........''''..''...........''',:coxOKXNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXX0l...................................'',;:lkXXNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXX0,................''.....................'',,,;o0XNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXK;.........................................'.'''''lKNNNNNNNNNNNNNN | |
XXXXXXXXXXXXX0c..................'................. .. ...'......,kXNNNNNNNNNNNN | |
XXXXXXXXXXXK:. .............'...........''......'..... ....'......'dXNNNNNNNNNNN | |
XXXXXXXXXXO. .... ...........................'''.......''.',.......xNNNNNNNNNNN |
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
;;; 只在 Org 8.2.10 測試過 | |
;;; 應該可以放到 org-load-hook 之類的地方吧... | |
;; 允許中文全形標點緊接在 emphasis marker 前後 (i.e. pre-, post-match) | |
;; 例: ,*中文* 或 +測試+。 | |
(setcar (nthcdr 0 org-emphasis-regexp-components) " \t('\"{、,。:;?「」『』〈〉《》>【】﹝﹞") | |
(setcar (nthcdr 1 org-emphasis-regexp-components) "- \t.,:!?;'\")}\\、,。:;?「」『』〈〉《》【】﹝﹞") | |
;; 允許 , ' " 這三個標點出現在緊臨 emmphasis marker 內側的位置 | |
;; 例: ="= 或 =123"= | |
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\r\n") |
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; | |
@interface KKWatchAppNotificationCenter : NSObject | |
+ (instancetype)sharedCenter; | |
- (void)postNotification:(NSString *)key; | |
- (void)addTarget:(id)target selector:(SEL)selector name:(NSString *)notification; | |
- (void)removeObserver:(NSObject *)observer; | |
@end |
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 bash | |
BUNDLE_PATH=$(dirname $0)/.. | |
xcrun java -jar "$BUNDLE_PATH/Java/josm-snapshot-8279.jar" |
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
- (void)applicationDidEnterBackground:(UIApplication *)application | |
{ | |
UIApplication* app = [UIApplication sharedApplication]; | |
bgTask = [app beginBackgroundTaskWithExpirationHandler:^{ | |
[app endBackgroundTask:bgTask]; | |
bgTask = UIBackgroundTaskInvalid; | |
}]; | |
// Start the long-running task and return immediately. | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, NULL), ^{ | |
// Do the work associated with the task. |