Skip to content

Instantly share code, notes, and snippets.

View buganini's full-sized avatar
💭
Anyware Developer

Buganini Chiu buganini

💭
Anyware Developer
View GitHub Profile
@buganini
buganini / initial-drop-privacy-policy
Created February 22, 2026 13:30
initial-drop-privacy-policy
Privacy Policy version 1.0 for the "Initial Drop" iOS app
The "Initial Drop" iOS app does not collect any user data of any kind. The app does not access the Internet at all.
@buganini
buganini / gif2animation.py
Created January 21, 2018 21:09
Script for converting gif to pngs with android animation xml
#!/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]
@buganini
buganini / fullwidth-addr-housenumber
Last active August 29, 2015 14:07
Find node/way with addr:housenumber which contains full width number
#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):
@buganini
buganini / gist:8004020
Created December 17, 2013 12:13
CodeIgniter Lang Redefinition Detection
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) {
@buganini
buganini / mute-firefox-alert
Created June 20, 2012 08:43
mute firefox alert
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");