use this https://github.com/Superbil/apStringToLocalizable version, this is old 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
dispatch_group_t group = dispatch_group_create(); | |
dispatch_semaphore_t semaphore = dispatch_semaphore_create(10); | |
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); | |
for (int i = 0; i < 100; i++) | |
{ | |
dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); | |
dispatch_group_async(group, queue, ^{ | |
NSLog(@"%i",i); | |
sleep(2); | |
dispatch_semaphore_signal(semaphore); |
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
(defadvice ido-find-file | |
(after find-file-sudo activate) | |
"Find file as root if necessary." | |
(unless (and buffer-file-name | |
(file-writable-p buffer-file-name)) | |
(find-alternate-file (concat "/sudo:root@localhost:" | |
buffer-file-name)))) |
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
;;; base on https://gist.github.com/coldnew/7398835 | |
(defvar emacs-english-font nil | |
"The font name of English.") | |
(defvar emacs-cjk-font nil | |
"The font name for CJK.") | |
(defvar emacs-font-size-pair nil | |
"Default font size pair for (english . chinese)") |
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
$ pip install uniout | |
Downloading/unpacking uniout | |
Downloading uniout-0.3.2.tar.gz | |
Running setup.py egg_info for package uniout | |
Traceback (most recent call last): | |
Complete output from command python setup.py egg_info: | |
running egg_info | |
creating pip-egg-info/uniout.egg-info |
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
BeautifulSoup==3.2.1 | |
GitPython==0.3.2.RC1 | |
PIL==1.1.7 | |
Pastebin==1.1.1 | |
PyGithub==1.16.0 | |
Scrapy==0.18.2 | |
SimpleCV==1.3 | |
Twisted==13.1.0 | |
argparse==1.2.1 | |
astroid==1.0.0 |
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 | |
## Mini-Xcode: XCode 5 | |
MIN_VERSION="6.0" | |
# set default output folder is build | |
OUTPUT_FOLDER=${PREFIX-build} | |
# set default compiler | |
CC=${CC-$(xcrun --find gcc)} |
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
;;; 在 Mac OS X 上設定 org-mode 表格可以正確對齊的中文字體設定 - Dev Notes | |
;;; http://kkdevs.tumblr.com/post/38276076979/mac-os-x-org-mode | |
(defun set-font (english english-size chinese chinese-size) | |
(set-face-attribute 'default nil :font | |
(format "%s:pixelsize=%d" english english-size)) | |
(dolist (charset '(kana han symbol cjk-misc bopomofo)) | |
(set-fontset-font (frame-parameter nil 'font) charset | |
(font-spec :family chinese :size chinese-size)))) | |
(set-font "Monaco" 13 "STHeiti" 13) |
from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html
First, add this to the project’s .git/info/attributes file:
*.strings diff=localizablestrings
Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file
Second, add this to your ~/.gitconfig file: