Skip to content

Instantly share code, notes, and snippets.

View zhuowei's full-sized avatar

zhuowei

View GitHub Profile
@zhuowei
zhuowei / encryptMe.js
Created July 31, 2012 01:22
A little xor encryption test
function encryptMe(str, startByte) {
var lastByte = startByte;
var newStr = "";
for (var i = 0; i < str.length; i++) {
var thisByte = (str.charCodeAt(i) & 0xff) ^ lastByte;
if (i !== 0) thisByte = thisByte ^ startByte;
newStr = newStr + String.fromCharCode(thisByte);
lastByte = thisByte;
}
return newStr;
@zhuowei
zhuowei / anaglyph.json
Created August 4, 2012 18:59
Anaglyph Unlock for Minecraft PE 0.3.2
{
"title": "Anaglyph unlock for 0.3.2",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"d1282": ["93", "f8", "3d", "30", "0", "2b"],
"d1289": ["d1"]
},
@zhuowei
zhuowei / antifog.json
Created August 4, 2012 19:03
AntiFog unlock for Minecraft PE 0.3.2
{
"title": "AntiFog unlock for 0.3.2",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"d18ca": ["9a", "6b", "51", "fa", "2", "f2"]
},
"options": {
@zhuowei
zhuowei / instadestroy.json
Created August 4, 2012 19:04
InstaDestroy patch for Minecraft PE 0.3.2
{
"title": "InstaDestroy patch for 0.3.2",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"13dc7c": ["7", "ee", "90", "1a", "9f", "ed", "7", "7a", "67", "ee", "87", "7a", "90", "ed"]
},
"options": {
@zhuowei
zhuowei / flyinsurvival.json
Created August 4, 2012 19:16
FlyInSurvival patch for Minecraft PE 0.3.2
{
"title": "FlyInSurvival patch for 0.3.2",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"9b020": ["0"],
"9b022": ["4b", "70"],
"9b026": ["cb", "70", "b", "70"],
@zhuowei
zhuowei / disabletnt.json
Created August 4, 2012 19:21
DisableTNT patch for Minecraft PE 0.3.2
{
"title": "DisableTNT patch for 0.3.2",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"1200d8": ["2d", "e9"],
},
"options": {
@zhuowei
zhuowei / elementaltnt.json
Created August 27, 2012 20:43
Minecraft PE 0.3.3 QuickPatches
{
"title": "Elemental TNT for Minecraft PE 0.3.3",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"13b714": ["00"]
},
"options": {
@zhuowei
zhuowei / schedule.txt
Created August 28, 2012 07:17
Schedule
1: Study Block
2: Rec PE 12
3: AP Physics B 12
4: AP Microeconomics
5: English 12
6: Chemistry 12
7: Calculus 12
A: Biology 12
B: Physics 12
@zhuowei
zhuowei / elementalexplosion.json
Created September 9, 2012 02:02
Minecraft PE 0.4.0 QuickPatches
{
"title": "Elemental Explosions for Minecraft PE 0.4.0",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"12e19a": ["00"]
},
"options": {
@zhuowei
zhuowei / pocketinveditor_build.markdown
Created September 26, 2012 23:18
PocketInvEditor readme rewrite draft

Compiling

PocketInvEditor is structured so that code common to both the free and the Pro version is included in the PocketInvEditor library project, while code for only the free version goes into the PocketInvEditor_app project.

Building with the Ant buildscript from the Android SDK:

1: git clone https://github.com/zhuowei/PocketInvEditor.git