Skip to content

Instantly share code, notes, and snippets.

View fanzeyi's full-sized avatar

Zeyi (Rice) Fan fanzeyi

View GitHub Profile
@fanzeyi
fanzeyi / short.py
Created December 12, 2010 05:09
演示
from shorturl.services.bit_ly import *
a = bit_ly('http://www.fanhe.org/')
a.init_api('','')
print a.GetShortUrl()
@fanzeyi
fanzeyi / gist:738079
Created December 12, 2010 14:31
fanfou
a {
text-decoration:none!important;
}
#columns{
-webkit-box-shadow:0 0 20px black;
-webkit-border-radius:10px;
}
#main{
*{
font-family:"文泉驿微米黑" !important;
}
a {
text-decoration:none!important;
}
#columns{
-webkit-box-shadow:0 0 20px black;
@fanzeyi
fanzeyi / Hualao.py
Created January 23, 2011 14:48
饭否话唠刷屏器= =
#!/usr/bin/python
#coding=UTF-8
'''Fanfou Hualao Bash'''
import sys
from os import system
AT = None
TOPIC = None
def Send_Message(msg):
server {
listen 80;
server_name XXXX;
location / {
proxy_redirect off;
proxy_set_header Host "spreadsheets.google.com";
proxy_pass http://spreadsheets.google.com;
proxy_set_header x-real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

使用说明


首先要安装pylast库。

$ easy_install pylast

然后填写里面的用户名密码即可~

@fanzeyi
fanzeyi / bash.sh
Created April 4, 2011 04:45
bash function
gcci () {
if [ "$#" -eq "0" ]
then
return
fi
cname=$(echo "$1.c")
gcc -Wall -g $cname -o $1 && time ./$1
}
new () {
901a902,940
>
> kaomojiData=
> {
> "<( ̄︶ ̄)>",
> "╮(╯▽╰)╭",
> "(→_→)",
> "Σ( ° △ °|||)︴",
> "(>﹏<)",
> "( ̄▽ ̄)~*",
server
{
listen 80;
server_name fourws.fanhe.org;
location /
{
proxy_pass http://fanfou-sender.appspot.com;
proxy_set_header Host "fanfou-sender.appspot.com";
proxy_set_header X-Real-IP $remote_addr;
@fanzeyi
fanzeyi / status.py
Created May 21, 2011 15:43
血量记录器... TRPG用
[fanzeyi@localhost TRPG]$ python blood.py
Status Maker Version 0.1 alpha
Copyright (C) 2011 fanhe.org
Status > people Zeray 30
Status > print
+----------------------------+
| Status |
+----------------------------+
| Zeray |