Skip to content

Instantly share code, notes, and snippets.

View kodango's full-sized avatar

kodango kodango

View GitHub Profile
# coding=utf-8
# version: 0.3
from __future__ import division
import sys
import urllib2, urllib, cookielib
import hashlib,re,pickle
import random, math
# 黑名单
blocklist = []
@kodango
kodango / weather.user.js
Created November 14, 2010 10:23
Get Weather Forecast from webxml.com.cn
// ==UserScript==
// @name Weather Forecast
// @id weather-forecast-dangoakachan@gmail.com
// @author tuanutan <dangoakachan@gmail.com>
// @homepageURL http://dango-akachan.appspot.com
// @description Get Weather Forecast from webxml.com.cn
// @include http://*
// @include https://*
// @version 0.3.2
// @updateURL https://userscripts.org/scripts/source/90010.meta.js
@namespace url(http://www.w3.org/1999/xhtml);
/************************************************************
* Style Name: CC98 2.0 Alpha Theme
* Description: Some adjustments for CC98 2.0 Alpha
* Version: 0.7
* Author: tuantuan <dangoakachan@gmail.com>
* CC98ID: ltt_Real
*
* To do:
@kodango
kodango / black.list
Created July 13, 2014 03:00
wordpress comment spam
充气娃娃
代孕
伴游
做爱
避孕套
安全套
字裤
内裤
跳蛋
润阴
@kodango
kodango / embed-gist.php
Created July 13, 2014 04:14
embed-gist
/*
* Embed gists with a URL in post article
*/
function dangopress_embed_gist($matches, $attr, $url, $rawattr)
{
$embed = sprintf(
'<script src="https://gist.github.com/%1$s.js%2$s"></script>',
esc_attr($matches[1]),
esc_attr($matches[2])
);