Skip to content

Instantly share code, notes, and snippets.

View undergroundmonorail's full-sized avatar

undergroundmonorail

View GitHub Profile
float flick_mod = 0.3;
float beat_mod = 0.3;
integer listen_handle;
float min(float x, float y)
{
// got this from the second life wiki, so i assume there's a reason it's
// relatively complex
return ( ( llAbs( x >= y ) ) * y ) + ( ( llAbs( x<y ) ) * x );
; before
.ballHorizontal
ld a,[BallXVector]
ld b,a
ld a,[BallXAddr]
add b
.rightWall
cp $98
jr z,.xFlip
.leftWall
Get_Keys::
ld a,$20
ld [$ff00],a ; set bit 5 low to enable buttons
ld a,[$ff00] ; allow time for it to bounce
ld a,[$ff00] ; get result
cpl ; invert (because a low result means the button is pressed)
and $0f ; throw out high nybble
swap a
ld b,a ; save low nybble as high nybble of b
ld a,$10
X Accuracy x98
Dire Hit x70
Thunderstone x47
TM11 x34
HP Up x112
TM01 xAny
ld l,$62 ; hl points at D362, player's x coord
ld a,(hl-) ; x coord stored in a, hl decremented to D361 (y coord)
ld b,(hl) ; y coord stored in b
Burn Heal x45
Dire Hit x45
Ice Heal x119
Lemonade x98
Fresh Water x201
0C 2D 3A 2D 0D 77 3E 62 3C C9
inc c ; Increase the value in the register C by one (to get around pokemon item limitations)
dec l ; Registers H and L together hold the address of the third item. Decrease by one to get quantity of second item
// use own namespace for plugin
window.plugin.resoLevelsNeeded = function() {};
window.plugin.resoLevelsNeeded.addInfo = function() {
var div = $('<div>').attr({id: 'reso-levels-needed'});
$('#resodetails').before(div);
window.plugin.resoLevelsNeeded.updateInfo();
};
import sys
if len(sys.argv)!=2:
print 'Usage: golfer.py <file>'
exit(1)
filename = sys.argv[1]
code = []
// ==UserScript==
// @name TagPro UI Upgrade
// @include http://*.newcompte.fr*
// @include http://tagpro.gg*
// @include http://tagpro.koalabeast.com*
// @include http://capturetheflag.us*
// @include http://tagpro-*.koalabeast.com*
// @version 1.0
// @description Script that modifies the css of TagPro pages
// @author SuperSans
// ==UserScript==
// @name Kingly Dailies
// @namespace https://www.reddit.com/u/undergroundmonorail
// @version 0.3
// @description Writes something incredibly wise or hilarious. (Wiseness/hilarity not guaranteed.)
// @author monorail
// @match http://www.neopets.com/medieval/grumpyking.phtml
// @match http://www.neopets.com/medieval/wiseking.phtml
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Orange Neopet Health
// @namespace http://www.reddit.com/u/undergroundmonorail
// @version 0.1
// @description yellow is hard to read. make your neopet's worrying-but-not-critical health show up orange instead
// @author monorail
// @match http://www.neopets.com/*
// ==/UserScript==
(function(){