Skip to content

Instantly share code, notes, and snippets.

Avatar

尹良灿 wenLiangcan

  • China
View GitHub Profile
@wenLiangcan
wenLiangcan / gist:3847913
Created Oct 7, 2012 — forked from asuna/gist:3847888
书签栏悬停
View gist:3847913
@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;
@wenLiangcan
wenLiangcan / tieba(各种修改).css
Created Oct 10, 2012 — forked from anonymous/tieba
新版贴吧宽屏主题 Noe132灰色样式个人修改版
View tieba(各种修改).css
@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 / Custom.css
Created Oct 18, 2012 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
View Custom.css
/**********************************************/
/*
/* 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 / gist:3927151
Created Oct 21, 2012
新浪微博图床小书签
View gist:3927151
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 / gist:4362723
Last active Dec 10, 2015
“一个-韩寒”的rss 采集
View gist:4362723
# 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):
View 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/(.+?)/"'
View custom_phrase.txt
# Rime table
# coding: utf-8
#@/db_name custom_phrase.txt
#@/db_type tabledb
#
# 用於【朙月拼音】系列輸入方案
# 【小狼毫】0.9.21 以上
#
# 請將該文件以UTF-8編碼保存爲
# Rime用戶文件夾/custom_phrase.txt
View autocomplete.match.pair.vim
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)
View dft.py
# Example usage
# $ python dft.py | gnuplot
# 9
# 0 0
# 1 1
# 2 2
# 0 2
# 1 1
# -1 1
# 0 2
View 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^^ #
#####################################
You can’t perform that action at this time.