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
user_pref("capability.policy.policynames", "strict"); | |
user_pref("capability.policy.strict.Window.alert", "noAccess"); | |
user_pref("capability.policy.strict.Window.confirm", "noAccess"); | |
user_pref("capability.policy.strict.Window.prompt", "noAccess"); | |
user_pref("capability.policy.strict.sites", "http://my.site"); |
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
diff --git a/libs/CodeIgniter_2.1.1/system/core/Lang.php b/libs/CodeIgniter_2.1.1/system/core/Lang.php | |
index 5ac6718..b0fa450 100755 | |
--- a/libs/CodeIgniter_2.1.1/system/core/Lang.php | |
+++ b/libs/CodeIgniter_2.1.1/system/core/Lang.php | |
@@ -15,6 +15,16 @@ | |
// ------------------------------------------------------------------------ | |
+class nodup extends ArrayObject { | |
+ public function offsetSet($i, $v) { |
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
#python fullwidth-addr-housenumber.py taiwan-latest.osm.pbf | |
import sys | |
from imposm.parser import OSMParser | |
def hasFW(s): | |
import re | |
return re.match(ur'[\uFF10-\uFF19]', s) | |
class Handler(): | |
def __init__(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
#!/usr/bin/env python3 | |
from subprocess import check_output as exe | |
import sys | |
import os | |
import math | |
gif = sys.argv[1] | |
out = sys.argv[2] |