Skip to content

Instantly share code, notes, and snippets.

View edwardtoday's full-sized avatar

Pei Qing 卿培 edwardtoday

View GitHub Profile
@edwardtoday
edwardtoday / 11500811g_5323_assign1.markdown
Last active October 1, 2015 05:28
WebDB Assignment 1

Solution to WebDB Assignment 1 (Spring 2012)

11500811g QING Pei
pei.qing@connect.polyu.hk
2012-02-29

Question 1 - Schema Design with IBM DB2

(a)

@edwardtoday
edwardtoday / gist:2204864
Created March 26, 2012 12:54
PhoneGap sqlite working example
Hi
I hope this helps you all get started with phonegap and sqlite in your
application
Dean-O
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
@edwardtoday
edwardtoday / img4web.sh
Created June 26, 2012 20:30
Shell: img4web
#!/usr/bin/env sh
# Resize all photos in the current directory.
# Save the output to ./processed
SIZE="1280x1280"
if [ ! -d ./processed ]; then mkdir ./processed; fi;
# creates the screen image
for f in *.jpg;
@edwardtoday
edwardtoday / compressJS.sh
Created June 27, 2012 16:03
Shell: CompressJS
#!/bin/sh
# https://github.com/dfsq/compressJS.sh
API_URL=http://closure-compiler.appspot.com/compile
COMPILATION_LEVEL=SIMPLE_OPTIMIZATIONS
DATEFORMAT=`date +"%d%m%y"`
NEWFILE="build${DATEFORMAT}.js"
# Check if files to compile provided
@edwardtoday
edwardtoday / pypod.py
Created July 2, 2012 13:42 — forked from chuangbo/README.md
Python dynamic DNSPod DNS Script
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import httplib, urllib
import socket
import time
params = dict(
login_email="email", # replace with your email
login_password="password", # replace with your password
@edwardtoday
edwardtoday / gist:4650433
Last active December 11, 2015 19:39
Set the noatime option on the root filesystem
#!/bin/bash
# +----------------------------------------------------------------------+
# | |
# | Mount the root file system / with the option noatime |
# | |
# | By Philipp Klaus <http://blog.philippklaus.de> |
# | Tip found on <http://blogs.nullvision.com/?p=275> |
# | |
# +----------------------------------------------------------------------+
@宅的可以V
听了几遍《High歌》,尼玛竟然发现这歌是在唱中国共产党的。。。开头“毛、邓、涛,就跟泽一起来,没有什么阻挡着恩来”…………高潮部分“咦咦咦咦你不在薄不在,咦咦咦咦习还会在”。。。直接唱出了我国特色社会主义精神 •﹏•
| 转发(364) | 评论(29)
3月7日17:21来自新浪微博
Testing http://qingpei.me
At Fri Mar 8 21:50:39 2013
10 loops
Fastest Median Slowest Std Dev
---------------------------------------------------------------------------
Server performance:
Total application time Unable to be recorded
PING net9.org (59.66.131.63): 56 data bytes
64 bytes from 59.66.131.63: icmp_seq=0 ttl=45 time=544.004 ms
64 bytes from 59.66.131.63: icmp_seq=1 ttl=45 time=654.926 ms
64 bytes from 59.66.131.63: icmp_seq=2 ttl=45 time=672.623 ms
64 bytes from 59.66.131.63: icmp_seq=3 ttl=45 time=593.543 ms
64 bytes from 59.66.131.63: icmp_seq=4 ttl=45 time=621.494 ms
64 bytes from 59.66.131.63: icmp_seq=5 ttl=45 time=656.079 ms
64 bytes from 59.66.131.63: icmp_seq=6 ttl=45 time=580.300 ms
64 bytes from 59.66.131.63: icmp_seq=7 ttl=45 time=567.605 ms
Testing http://net9.org
At Sat Mar 9 00:08:24 2013
10 loops
Fastest Median Slowest Std Dev
---------------------------------------------------------------------------
Server performance:
Total application time Unable to be recorded