Skip to content

Instantly share code, notes, and snippets.

@wenLiangcan
wenLiangcan / adhoc
Created September 19, 2013 02:08 — forked from anonymous/adhoc
#!/bin/bash
#####################################
#Author: Leon Lee #
#email: lendylongli@gmail.com #
#QQ: 730395591 #
#Version: 1.0 #
#Note: If you have some good ideas #
# or advice, please mail me^^ #
#####################################
# Example usage
# $ python dft.py | gnuplot
# 9
# 0 0
# 1 1
# 2 2
# 0 2
# 1 1
# -1 1
# 0 2
inoremap ( <c-r>=OpenPair('(')<CR>
inoremap ) <c-r>=ClosePair(')')<CR>
inoremap { <c-r>=OpenPair('{')<CR>
inoremap } <c-r>=ClosePair('}')<CR>
inoremap [ <c-r>=OpenPair('[')<CR>
inoremap ] <c-r>=ClosePair(']')<CR>
" just for xml document, but need not for now.
"inoremap < <c-r>=OpenPair('<')<CR>
"inoremap > <c-r>=ClosePair('>')<CR>
function! OpenPair(char)
# Rime table
# coding: utf-8
#@/db_name custom_phrase.txt
#@/db_type tabledb
#
# 用於【朙月拼音】系列輸入方案
# 【小狼毫】0.9.21 以上
#
# 請將該文件以UTF-8編碼保存爲
# Rime用戶文件夾/custom_phrase.txt
@wenLiangcan
wenLiangcan / huaban.py
Created December 28, 2012 05:14 — forked from amoblin/huaban.py
#!/usr/bin/env python
# -*- coding: utf8 -*-
# author: amoblin <amoblin@163.com>
import sys, re, urllib2, os, urllib
beauty_url = "http://huaban.com/favorite/beauty/"
#beauty_url = "http://huaban.com/"
pin_re = '<a href="/pins/(.+?)/"'
@wenLiangcan
wenLiangcan / gist:4362723
Last active December 10, 2015 01:48
“一个-韩寒”的rss 采集
# coding: utf-8
from google.appengine.ext import db
from google.appengine.api import urlfetch
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
import urllib, urllib2, BeautifulSoup, re, datetime
#class Conf(db.Model):
@wenLiangcan
wenLiangcan / gist:3927151
Created October 21, 2012 14:39
新浪微博图床小书签
javascript:void(function(){var%20d%20=%20document,a%20=%20'setAttribute',s%20=%20d.createElement('script');s[a]('tyle','text/javascript');s[a]('src','http://pastebin.com/raw.php?i=vH98htiN');d.head.appendChild(s);})();
@wenLiangcan
wenLiangcan / Custom.css
Created October 18, 2012 13:56 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@wenLiangcan
wenLiangcan / tieba(各种修改).css
Created October 10, 2012 09:14 — forked from anonymous/tieba
新版贴吧宽屏主题 Noe132灰色样式个人修改版
@namespace url(http://www.w3.org/1999/xhtml);
/*签到栏标题*/
.sign_title_text2::before{
position:absolute;
content:"签签更健康";
font-weight:bold;
font-size:13px;
text-shadow:1px 1px gray;
color:white;
@wenLiangcan
wenLiangcan / gist:3847913
Created October 7, 2012 11:18 — forked from asuna/gist:3847888
书签栏悬停
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#PersonalToolbar{
position:fixed;
margin-top:45px !important;
border:1px solid #BBB !important;
visibility:hidden !important;
opacity:0;
-moz-transition-property: margin,opacity;
-moz-transition-duration: 0.5s;
-moz-transition-delay: 0s;