Skip to content

Instantly share code, notes, and snippets.

View wgx731's full-sized avatar

Eric Wang GaoXiang wgx731

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wgx731 on github.
  • I am wgx731 (https://keybase.io/wgx731) on keybase.
  • I have a public key ASAJHtXfFs6QQ73o7F2RiFtUWXL4Lp09x478FIpFUq8cFgo

To claim this, I am signing this object:

@wgx731
wgx731 / .gitconfig
Last active February 27, 2017 02:05
My git config
[user]
name = wgx731
email = wgx731@gmail.com
signingkey = 1E238BF264F01CB0
[core]
quotepath = false
editor = vim
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[commit]
gpgsign = true
@wgx731
wgx731 / ticket.py
Created August 6, 2013 06:03
Simple script for my PyconSG 2013 ticket application
#!/usr/bin/env python
#ticket.py -- Application for pyconsg ticket.
#Author: wgx731
#Adopted from life.py
#
#An empty board will be displayed, and the following commands are available:
# E : Erase the board
# S : Show the application
# C : Credit
# Q : Quit
@wgx731
wgx731 / .gitignore
Last active October 8, 2019 14:06
combined .gitignore template file
###################################################
## Linux.gitignore
###################################################
*~
# KDE directory preferences
.directory
###################################################
## OSX.gitignore
###################################################
@wgx731
wgx731 / PagingControl.js
Created May 19, 2012 06:05 — forked from raulriera/PagingControl.js
Nice Paging control for scrollableViews for Titanium Appcelerator
// Forked from https://gist.github.com/2417902 to fix a small bug
// -----
function PagingControl(scrollableView){
var pages = [];
var page;
var numberOfPages = 0;
// Configuration
var pageColor = "#c99ed5";
var container = Titanium.UI.createView({
@wgx731
wgx731 / todolist.py
Created August 19, 2011 03:54
A simple enhancement version of python bottle framework "Todolist" tutorial. (Change GET to POST)
import sqlite3
from bottle import route, run, debug, template, request, validate, send_file, error
# only needed when you run Bottle on mod_wsgi
from bottle import default_app
@route('/todo')
def todo_list():
conn = sqlite3.connect('todo.db')
c = conn.cursor()