Skip to content

Instantly share code, notes, and snippets.

View happyincent's full-sized avatar

Vincent Chen happyincent

View GitHub Profile
@g761007
g761007 / tra.user.js
Last active November 27, 2016 16:56
The UserScript which booking the TRA ticket at the same page.
// ==UserScript==
// @name TRA
// @namespace http://danielhsieh.com/tra
// @description booking the ticket
// @include http://railway.hinet.net/ctkind1.htm
// @include http://railway.hinet.net/ctno1.htm
// @version 1
// @require http://code.jquery.com/jquery-latest.js
// @grant GM_getValue
// @grant GM_setValue
@n3wtron
n3wtron / simple_mjpeg_streamer_http_server
Last active December 22, 2023 13:32
Simple Python Motion Jpeg (mjpeg server) from webcam. Using: OpenCV,BaseHTTPServer
#!/usr/bin/python
'''
Author: Igor Maculan - n3wtron@gmail.com
A Simple mjpg stream http server
'''
import cv2
import Image
import threading
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
from SocketServer import ThreadingMixIn