Skip to content

Instantly share code, notes, and snippets.

View Kingson's full-sized avatar
🎯
Focusing

Kingson Zhou Kingson

🎯
Focusing
  • ButtonSoftware
  • China
View GitHub Profile
@Kingson
Kingson / UIColor+HexString.h
Created November 10, 2015 10:41 — forked from codingrhythm/UIColor+HexString.h
Objective-C class to convert hex string to UIColor. Support #RGB # ARGB #RRGGBB #AARRGGBB Usage: [UIColor colorWithHexString:@"#f5e6a1"];
//
// UIColor+HexString.h
// Class to convert hex string to UIColor
// Support #RGB # ARGB #RRGGBB #AARRGGBB
// Usage: [UIColor colorWithHexString:@"#f5e6a1"];
// Created by Zhu Yuzhou on 1/20/13.
//
#import <UIKit/UIKit.h>
#coding: utf-8
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template
@route('/')
@route('/index.html')
def index():
return '<a href="/hello">Go to Hello World page</a>'
@route('/hello')
def hello():
@Kingson
Kingson / wblogin.py
Created January 6, 2013 08:21 — forked from mrluanma/requirements.txt
自动登录新浪微博脚本。
import re
import json
import urllib
import base64
import hashlib
import requests
import OS
WBCLIENT = 'ssologin.js(v.1.3.18)'