Skip to content

Instantly share code, notes, and snippets.

@shizhao
shizhao / gist:2849692
Created June 1, 2012 06:54 — forked from zythum/gist:2848881
google收录的敏感词
@shizhao
shizhao / passcode.py
Last active December 11, 2015 02:09 — forked from binux/passcode.py
http://www.ingress.com/intel 登陆,找到www.ingreww.com的cookie ACSID值和csrftoken值填入变量中。另外去https://code.google.com/apis/console/ 申请一个google+ 的API key填入变量中。
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<1@binux.me>
# http://binux.me
# shizhao
# http://shizhao.org
# Created on 2013-01-14 10:29:51
#
# From Google+ find passcode
Binxing Fang, http://en.wikipedia.org/wiki/Fang_Binxing
方滨兴,中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网 络方向首席科学家。
Gang Xiong, http://rd.springer.com/search?facet-author=%22Gang+Xiong%22
熊刚, 高级工程师, 研究方向为信息安全。E-mail: xionggang@ict.ac.cn。
Weili Han, http://crypto.fudan.edu.cn/people/weili/
韩伟力, http://homepage.fudan.edu.cn/wlhan/en
This is just my personal gist clip.
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
<!--
For other language: Instead of `ace/mode/ruby`, Use
Markdown -> `ace/mode/markdown`
Python -> `ace/mode/python`
C/C++ -> `ace/mode/c_cpp`
Javscript -> `ace/mode/javascript`
@shizhao
shizhao / MediaWiki.xml
Created April 6, 2016 14:32
Notepad++ mediawiki 语法高亮
<NotepadPlus>
<UserLang name="MediaWiki" ext="wiki" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="yes" Keywords6="yes" Keywords7="yes" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00&lt;nowiki&gt; 01 02&lt;/nowiki&gt; 03&lt;!-- 03&lt;math&gt; 03&lt;pre&gt; 03&lt;poem&gt; 04--&gt; 04&lt;/math&gt; 04&lt;/pre&gt; 04&lt;/poem&gt;</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
#!/usr/bin/python
# -*- coding: utf-8 -*-
import datetime
from pywikibot import config
import pywikibot
import pywikibot.data.api
site = pywikibot.Site()
<style type="text/css">
#cn-toggle-box {
float: right;
}
.wam_2015_image {
border: 1px
}
</style>
<div id="wam-banner" class="plainlinks" style="width: 99%; background: #fff; color: #111; -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35); -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35); box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35); -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px;">
浙江签单哥
警察杜平
宣恩杀人现场
叶迎春内衣
孙国相拆迁
中央领导内幕
盘锦二表哥姜伟华
盘锦开枪
四学者建言
只身挡坦克
@shizhao
shizhao / Ruby Notepad Bookmarklet.js
Last active November 9, 2016 08:09 — forked from jakeonrails/Ruby Notepad Bookmarklet
修改ace/mode/ruby,适应不同语言
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="https://raw.github.com/ajaxorg/ace-builds/master/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@shizhao
shizhao / pub.py
Last active December 27, 2016 08:07
Panoramio upload bot
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Script to upload images of panoramio to wikimedia commons.
by Shizhao 2014
"""
import urllib2,re, random
import datetime