This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello World! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DMS423_HW04_Xiaoyu.py | |
# | |
# Homework 04 for DMS 423 Fall 14 | |
# by Xiaoyu Tai(Sean) | |
# UBID: 50133396 | |
# | |
# Sprite-style video game | |
# Free Pac-Man | |
# | |
# -------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DMS423_HW03-1_Xiaoyu.py | |
# | |
# Homework 03-1 for DMS 423 Fall 14 | |
# by Xiaoyu Tai(Sean) | |
# UBID: 50133396 | |
# | |
# | |
# Paint Program | |
# Normal Function | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DMS423_HW03-2_Xiaoyu.py | |
# | |
# Homework 03-2 for DMS 423 Fall 14 | |
# by Xiaoyu Tai(Sean) | |
# UBID: 50133396 | |
# | |
# | |
# Paint Program | |
# Abnormal Function | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = { | |
"あい": "love", | |
"いう": "say", | |
"うえ": "up", | |
"うお": "fish", | |
"おう": "owe", | |
"あう": "meet", | |
"おい": "nephew", | |
"おおい": "many", | |
"いい": "good", |
OlderNewer