Skip to content

Instantly share code, notes, and snippets.

:octocat:
Oh?

Xiaoyu Tai (Sean) xtai

:octocat:
Oh?
Block or report user

Report or block xtai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View homebridge
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
View intro-jp.js
a = {
"あい": "love",
"いう": "say",
"うえ": "up",
"うお": "fish",
"おう": "owe",
"あう": "meet",
"おい": "nephew",
"おおい": "many",
"いい": "good",
View tic-tac-toe.js
/*
* Tic-tac-toe
* Xiaoyu Tai
* 08/30/2015
*/
function Game() {
this.data_storage = new DataStorage();
this.ui = new UI();
this.controller = new Controller(this.ui, this.data_storage);
View hours.js
/**
This script is used by hours daily and weekly view
https://issues.umd.edu/browse/LIBWEB-3255
@Author: Xiaoyu Tai
*/
var current_branch, current_date; // used by daily and weekly view
var highlight = true; // weekly view highlight option
// actions are triggered from the page
@xtai
xtai / day.py
Last active Aug 29, 2015
day.py
View day.py
# Daylight & Moonlight
# by Xiaoyu Tai
#
# Mountains with rotating Sun and Moon.
# plus sky colors~
from pyglet.gl import *
from math import *
window = pyglet.window.Window(1000, 640)
View gist:1094299c475c10db2bf0
import json, urllib
url = "http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.geojson"
response = urllib.urlopen(url);
data = json.loads(response.read())
i = 0
for x in data['features']:
i += 1
print i, x['properties']['title']
View gist:50af51ba249a35a63331
# DMS423_HW03-2_Xiaoyu.py
#
# Homework 03-2 for DMS 423 Fall 14
# by Xiaoyu Tai(Sean)
# UBID: 50133396
#
#
# Paint Program
# Abnormal Function
#
View gist:2ea2073c26a6a8afcf9a
# DMS423_HW03-1_Xiaoyu.py
#
# Homework 03-1 for DMS 423 Fall 14
# by Xiaoyu Tai(Sean)
# UBID: 50133396
#
#
# Paint Program
# Normal Function
#
View gist:907f86bd9bd28d737ec2
# DMS423_HW04_Xiaoyu.py
#
# Homework 04 for DMS 423 Fall 14
# by Xiaoyu Tai(Sean)
# UBID: 50133396
#
# Sprite-style video game
# Free Pac-Man
#
# --------
View gist:80c6132443e2d641df32
# DMS423_HW02_Xiaoyu.py
#
# Homework 01 for DMS 423 Fall 14
# by Xiaoyu Tai(Sean)
# UBID: 50133396
#
# Fruit Ninja Simulator
#
# Credits:
# - Fruit Ninja, game of Halfbrick Studios, http://halfbrick.com/
You can’t perform that action at this time.