Skip to content

Instantly share code, notes, and snippets.

View liuzhe0223's full-sized avatar
🎯
Focusing

Liu Zhe liuzhe0223

🎯
Focusing
View GitHub Profile
@liuzhe0223
liuzhe0223 / upload_image.py
Created June 25, 2013 11:08
用于上传图片到 https://api.imgur.com , 返回图片url, 论坛发图片用的
#!/usr/bin/python2
import urllib2
import urllib
import sys
import json
try:
data = file(sys.argv[1], 'r').read()
except:
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Pw @ 2013-06-22 19:56:30
class Test:
def count(self,n):
while n > 0:
yield n
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'rails.vim'
Bundle 'c.vim'
Bundle 'python.vim'
"Bundle 'https://github.com/ervandew/supertab.git'
Bundle 'git://github.com/scrooloose/nerdtree.git'