Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View markzhai's full-sized avatar
🎯
Focusing

markzhai markzhai

🎯
Focusing
View GitHub Profile
@markzhai
markzhai / gist:1cbc2cd695068cf09be638d15eed0735
Created April 13, 2016 15:44
Fix Win10 Shadowsocks 500 error (run as administrator)
netsh interface ipv4 reset
netsh interface ipv6 reset
netsh winsock reset
@markzhai
markzhai / retrofit2_rxjava_proguard_config
Created March 1, 2016 10:18 — forked from jkwiecien/retrofit2_rxjava_proguard_config
Retrofit2 + RxJava proguard config.
########--------Retrofit + RxJava--------#########
-dontwarn retrofit.**
-keep class retrofit.** { *; }
-dontwarn sun.misc.Unsafe
-dontwarn com.octo.android.robospice.retrofit.RetrofitJackson**
-dontwarn retrofit.appengine.UrlFetchClient
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@retrofit.http.* <methods>;
@markzhai
markzhai / addFitsSystemWindows
Created July 20, 2015 09:29
addFitsSystemWindows to all layout files (use if to add Translucent Status Bar support easily)
import xml.etree.ElementTree as ET
import os
dirDecodeEncoding = "gbk";
def GetFileList(dir, fileList):
newDir = dir
# if dir is file and filename extension is xml
if os.path.isfile(dir) and dir.decode(dirDecodeEncoding).endswith(".xml") and os.path.dirname(dir).endswith("\layout"):
fileList.append(dir.decode(dirDecodeEncoding))