Skip to content

Instantly share code, notes, and snippets.

View zhuowei's full-sized avatar

zhuowei

View GitHub Profile
@zhuowei
zhuowei / Player.java
Created June 11, 2011 04:40 — forked from CruzBishop/Player.java
Permissions for Graham
import java.util.ArrayList;
public class Player extends LivingEntity {
private ArrayList<String> permissions = new ArrayList<String>();
//(Load the permissions, of course. I used Json and Yaml in two projects, but I'm sure you'll have something better)
public boolean hasPermission(String requestedPermission) {
if (permissions.contains("*"))
return true;
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.AccelerometerEvent;
import flash.events.Event;
import flash.sensors.Accelerometer;
import flash.text.TextField;
import flash.text.TextFormat;
@zhuowei
zhuowei / Questions
Created June 21, 2011 01:24
Kiwi Pycon Give-away
GitHub username: zhuowei
Day job: Going to school.
Favorite open source project: Everything! If I have to pick one: Mozilla Firefox
Open Source contributions (if any): lightstone
Stranded on an island, what 3 items do you take: a teleporter, a teleporter operator, sunglasses
Tie-breaker, pick a number between 1 and 20,000: (e * 321) or approximately 873
@zhuowei
zhuowei / README.md
Created July 4, 2011 02:47
Demo: A Python CGI URL Shortener

A simple CGI-based web server. first, run createDatabase.py, then run run.py.

Then navigate to http://127.0.0.1:8080/ in a web browser.

sdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf
Wonderful sdf!
@zhuowei
zhuowei / output.txt
Created May 12, 2012 06:27
LD_DEBUG for python3.2 on QNX PlayBook loading libminecraft_j.so
>>> cdll.LoadLibrary("libminecraftpe_j.so")
debug: Looking up symbol history_get
debug: Symbol history_get bound to definition in libedit.so.0
debug: Looking up symbol PyUnicodeUCS2_FSConverter
debug: Symbol PyUnicodeUCS2_FSConverter bound to definition in libpython3.2m.so.1.0
@zhuowei
zhuowei / qlibbionic_headers.txt
Created May 12, 2012 06:55
ELF headers of libbionic.so from the QNX Blackberry PlayBook 2.0.1 Android Player
qlibbionic.so: file format elf32-littlearm
qlibbionic.so
architecture: arm, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00004100
Program Header:
0x70000001 off 0x0000f8f0 vaddr 0x0000f8f0 paddr 0x0000f8f0 align 2**2
filesz 0x00000020 memsz 0x00000020 flags r--
@zhuowei
zhuowei / cavesmod.json
Created June 19, 2012 01:51
Caves Mod version 2 - Verbose Interactive Patch format
{
"title": "Caves Mod",
"version": 2,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"114d6a": ["53", "68"],
"1150d0": ["2d", "e9", "f0", "4f", "2d", "ed", "10", "8b", "ad", "f5", "28", "6d", "83", "b0", "df", "f8", "bc", "44", "0d", "f5", "2f", "65"]
},
@zhuowei
zhuowei / smoothlighting_compat.json
Created July 21, 2012 04:27
Smooth lighting Unlock (Compatibility version) QuickPatch for Minecraft PE 0.3.2
{
"title": "Smooth Lighting Unlock - compatibility version",
"version": 3,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"a8996": ["4f", "f4", "e8", "50", "ed", "f7", "a", "ed"],
"af480": ["4f", "f4", "e8", "50", "e6", "f7", "94", "ef"],
"af628": ["4f", "f4", "e8", "50", "e6", "f7", "c0", "ee"],
@zhuowei
zhuowei / moreslots.json
Created July 25, 2012 21:07
More hotbar slots for Minecraft PE 0.3.2: QuickPatch format
{
"title": "More hotbar slots",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"abbd0": ["d0"],
"abbd1": ["f8", "50", "0a"]
},