This file contains hidden or 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
CARGO = cargo | |
all: build doc | |
build: | |
@$(CARGO) build | |
doc: | |
@$(CARGO) doc |
This file contains hidden or 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
/*<?php | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |
This file contains hidden or 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
#!/bin/bash | |
set -o nounset | |
set -o errexit | |
if [ "$#" == "0" ]; then | |
echo "usage: $0 [autopep8 options] input.py" | |
exit 1 | |
fi |
This file contains hidden or 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
#!/usr/bin/python | |
# http://kennastuff.blogspot.de/2013/03/zelda-starring-zelda-python-code.html | |
# You'll need to have a copy of Legend of Zelda named "original.nes" | |
# in the same folder as the .py file. Run the .py file | |
# and it'll spit out a file called "hack.nes". | |
ORIGINAL_SCROLL_TEXT = [ |
This file contains hidden or 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
diff --git a/modules/eb/EbModule.py b/modules/eb/EbModule.py | |
index fd99ecb..8759639 100644 | |
--- a/modules/eb/EbModule.py | |
+++ b/modules/eb/EbModule.py | |
@@ -7,7 +7,21 @@ try: | |
from modules.eb import NativeComp | |
hasNativeComp = True | |
except ImportError: | |
- hasNativeComp = False | |
+ try: |
This file contains hidden or 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
diff --git a/modules/eb/BattleBgModule.py b/modules/eb/BattleBgModule.py | |
index f771fb9..0667f3c 100644 | |
--- a/modules/eb/BattleBgModule.py | |
+++ b/modules/eb/BattleBgModule.py | |
@@ -55,12 +55,12 @@ class BattleBgModule(EbModule.EbModule): | |
if (self._bbgGfxArrs[gfxNum] == None): | |
# Max size used in rom: 421 (2bpp) 442 (4bpp) | |
tg = EbTileGraphics(512, 8, colorDepth) | |
- with EbCompressedData() as tgb: | |
+ with EbCompressedData(tg.sizeBlock()) as tgb: |
This file contains hidden or 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
CC = gcc | |
CFLAGS = -fPIC -O3 -shared | |
LDFLAGS = | |
SOURCES = NativeComp.c | |
OBJECTS = $(SOURCES:.c=.so) | |
CFLAGS += `pkg-config --cflags python` | |
LDFLAGS += `pkg-config --libs python` |