Skip to content

Instantly share code, notes, and snippets.

View fanzeyi's full-sized avatar

Zeyi (Rice) Fan fanzeyi

View GitHub Profile
@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 |
@fanzeyi
fanzeyi / tumblr.py
Created June 29, 2011 13:22
upload picture to tumblr
#!/usr/bin/python
import urllib2_file
import urllib2
import sys
path = sys.argv[1]
text = "".join(sys.argv[2:])
data = {}
data['email'] = 'username@gmail.com'
data['password'] = 'password'
@fanzeyi
fanzeyi / main.py
Created August 5, 2011 14:56
Basic Web.py Project
# -*- coding: utf-8 -*-
import web
from urls import urls
from render import render
web.config.debug = True
app = web.application(urls, globals())

USAGE

V2EX > Setting

My CSS:

@import url('https://raw.github.com/gist/1146732/v2ex_dark.css');