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
#! /usr/bin/env python3 | |
'''Get the localized strings of "Current Location" used by Google Maps on iOS''' | |
# cd /private/var/stash/Applications/Weather.app | |
# find . -name Localizable.strings -exec plutil -convert json "{}" \; | |
# find . -name Localizable.strings | xargs python3 currentLocations.py | |
import sys | |
import json |
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
<?php | |
/** | |
* Simplified / Traditional Chinese conversion tables | |
* | |
* Automatically generated using code and data in includes/zhtable/ | |
* Do not modify directly! | |
* | |
* @file | |
*/ |
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
#! /usr/bin/env python3 | |
'''Convert old style separator for new Xcode.''' | |
import re | |
import sys | |
for file in sys.argv: | |
with open(file, 'rw') as f: | |
source = f.read() |
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
#! /usr/bin/env python3 | |
'''Create Softbank and Unified Emoji mapping for iOS.''' | |
# download full.html to same directory first | |
# curl -O http://www.unicode.org/%7Escherer/emoji4unicode/snapshot/full.html | |
import re | |
import sys |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
''' | |
参考:解决Dropbox中国无法及时自动同步的问题 | |
http://www.chinagfw.org/2012/04/dropbox.html | |
ping notify17.dropbox.com => 199.47.218.150 | |
/etc/hosts: |
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
# coding=utf8 | |
''' | |
2012/7/26 | |
encode and decode a normal tree (children can be more than 2) to and from string (format of your own choice) | |
''' | |
try: | |
from functools import reduce | |
except: |