Skip to content

Instantly share code, notes, and snippets.

View alchzh's full-sized avatar

Albert Zhang alchzh

View GitHub Profile
@alchzh
alchzh / REIMBA.txt
Last active September 28, 2015 22:59
bleeddamage 5
burndamage 5
flamerammomax 1
flamerammosub2 1
flamercollide1 8192
flamercollide2 24
flamercolour 0x808080
flamerdamage2 100
flamerdamagehead2 1.5
flamerdamageself1 0.0
This module is self contained. You can just drop these files into a jokes folder in usercontent
@alchzh
alchzh / wm.py
Last active August 24, 2016 23:22
WIP GFS WRF forecast
"""
A script to run a WRF forecast for Pennsylvania,
but it can easily be modified for anything else by
changing params and modifying namelist.wps files.
Should be run automatically by cron or equivalent
Requires requests and f90nml modules because I'm lazy
and this is really meant for (my!) personal usage...
Make sure WPS and WRFV3 are all in the directory
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alchzh
alchzh / exo.svg
Last active October 9, 2020 04:43
Made with matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alchzh
alchzh / index.html
Created January 6, 2017 21:43
stuff
<html>
<head>
</head>
<body>
<script>
myAudio = new Audio('http://mc.artofproblemsolving.com/sounds/intro.ogg');
myAudio.addEventListener('ended', function() {
this.currentTime = 0;
this.play();
}, false);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alchzh
alchzh / index.html
Last active February 5, 2022 22:51
Redirect
<form name='search' action='https://directory.columbia.edu/people/search' method='post'>
<input id="hello" type="hidden" name="filter.searchTerm">
</form>
<script>
window.onload = function onload() {
document.getElementById("hello").value = decodeURI(window.location.search.substring(1));
document.forms["search"].submit();
}
</script>