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
; Option A: Using DCPU registers for storing 16-bit Z80 registers | |
; x, y, z, i = FA, BC, DE, HL | |
; reading B: ; cycles | |
; set a, y ; 1 | |
; shr a, 8 ; 2 | |
; reading C: | |
; set a, y ; 1 | |
; and a, 0x00ff ; 2 | |
; reading BC: | |
; set a, bc ; 1 |
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
from flask import request, url_for | |
# Supports multiple query args with the same key. | |
def url_for_here(**changed_args): | |
args = request.args.to_dict(flat=False) | |
args.update(request.view_args) | |
args.update(changed_args) | |
return url_for(request.endpoint, **args) | |
app.jinja_env.globals['url_for_here'] = url_for_here |
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
from flask import abort | |
# Callable decorator | |
def minpowerlevel(powerlevel): | |
def decorator(function): | |
@wraps(function) | |
def f(*args, **kvargs): | |
if g.user.powerlevel >= powerlevel: | |
return function(*args, **kvargs) | |
else: |
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
game: | |
tilesets: | |
- tileset: &tileset0 | |
name: Overworld | |
file: overworld.png | |
colisions: | |
[1, 0] | |
maps: | |
- map: &map0 |
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
__module_name__ = "beep" | |
__module_version__ = "0.1.1" | |
__module_description__ = "Beeps for channel messages" | |
import xchat | |
import os | |
print "Beep loaded!" | |
# http://www.phy.mtu.edu/~suits/notefreqs.html |
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 znc | |
import datetime | |
DAY_BEGIN_HOUR = 4 | |
DIARY_DIR = ".diary/" | |
class diary(znc.Module): | |
description = "Diarykeeping for the truly lazy." | |
def OnModCommand(self, message): |
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
lines = { | |
11: " / ; ,-, \\_> <<_' ____________;_)", | |
7: " | | .--| |,~~~~~| |~~~,,,,'-| |", | |
3: " ( Y Y ( )", | |
9: " .| |~ // ___ '-',,'.", | |
15: " | '-._ ~~,,, ,,,~~ __.-'~ | |", | |
13: " | ; '-'\_\/> '-._ |", | |
20: " \ `'==========='` .'", | |
2: " ( ) ( ) (", | |
8: " | |-,,~~'-'___ '-' ~~| |._", |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Author: Sanky | |
License: Public domain | |
--> | |
<language id="gbz80asm" _name="gbz80asm" version="2.0" _section="Sources"> | |
<metadata> | |
<property name="mimetypes">text/x-z80asm</property> |
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
#!/bin/python3 | |
from sys import argv | |
highchars = 'üéďäĎŤčěĚĹÍľĺÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■' | |
out = "" | |
with open(argv[1], 'rb') as f: | |
for byte in f.read(): |
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
-- | |
-- ░█▀▄░█▀█░█▀█░█▄█░░░░█░░░█░█░█▀█ | |
-- ░█▀▄░█░█░█░█░█░█░░░░█░░░█░█░█▀█ | |
-- ░▀▀░░▀▀▀░▀▀▀░▀░▀░▀░░▀▀▀░▀▀▀░▀░▀ | |
-- | |
-- | |
-- Fair warning: this code is about as bad as the things it does to games. | |
-- GBA support experimental and frankly quite boring. | |
OlderNewer