Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View newkedison's full-sized avatar
🎯
Focusing

newkedison

🎯
Focusing
View GitHub Profile
@newkedison
newkedison / gist:c2841a8a544dc0358ea2
Created April 7, 2015 00:43
修改运营商标识
直接init.d里面写个脚本,把三个变量改一改就可以了,当然你的内核得支持执行init.d脚本,不行的话去下个$cript
#!/system/bin/sh
if [ -e /etc/no_fix_sim ]; then
exit 0
fi
#We will proceed if either
#1. gsm.sim.state has a READY value
将当前文件夹下,所有文件中的common.h替换成Common.h
grep 'common.h' *|awk -F: '{print $1}'|xargs sed -i '/common.h/s//Common.h/'
屏蔽Google+图片上的“More photos from 某人”按钮
Code:
.U0wakb.AaxmJ {
display: none !important;
}
Applies to:
URLs on the domain:
plus.google.com
@newkedison
newkedison / clear_IE_proxy.bat
Created June 29, 2012 00:42
change IE proxy by bat
@echo off
echo clearing IE proxy
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "" /f
@newkedison
newkedison / death_and_light
Last active October 12, 2015 15:48
elementsthegame
from: http://elementscommunity.org/forum/index.php/topic,45840.msg1031708.html#msg1031708
in thread: http://elementscommunity.org/forum/index.php/topic,45840.0.html
001: 52g 52g 52g 542 542 5m6 710 710 710 718 718 718 718 718 718 71a 71a 71a 71u 71u 71u 71u 71u 71u 72i 7km 7km 7km 7q9 7q9 7q9 7q9 7q9 7q9 8pq
@newkedison
newkedison / gist:4186504
Created December 2, 2012 01:50
google_logo_url
https://ssl.gstatic.com/s2/oz/images/google-logo-plus-0fbe8f0119f4a902429a5991af5db563.png
https://www.google.com/reader/ui/624570210-reader-logo-zh_TW.gif?hl=zh-TW
(gmail)http://farm6.static.flickr.com/5145/5612547349_bf6b97702a_o.jpg
https://www.google.com/intl/en/images/logos/latitude_logo.gif
https://code.google.com/images/code_logo.gif
https://ssl.gstatic.com/analytics/20120403/web/analytics_logo.png
http://www.gstatic.com/translate/intl/en/logo2.png
@newkedison
newkedison / parser.py
Last active December 11, 2015 01:29
G+ summary
from bs4 import BeautifulSoup
import re
import sys
def include_all_class(classes):
def check_class(tag):
result = True
for c in classes:
if not tag.has_key('class') or not c in tag['class']:
result = False
# Rime schema
# encoding: utf-8
# 这是我配置的第一个Rime输入方案,主要按照我自己的需求来设计,包括以下特点
# 1. 使用原来的luna_pinyin的字典
# 2. 默认情况下,使用简体字(毕竟繁体字我虽然看得懂,但写起来可能就贻笑大方了)
# 3. 默认情况下,使用半角标点符号
# 4. 把大部分全角标点定义为唯一映射,我觉得出个列表来选择没太大作用,还要多按一次空格,还是唯一选择就好了
# 5. 把Shift和Ctrl的功能重新修改,目前只有左Ctrl有用,在输入一段内容后,按Ctrl可以直接上屏,然后切换为英文输入,如果没有输入的内容,则切换为英文
# 6. 去掉的反查的功能,目前没有学习其他输入方法的计划