Skip to content

Instantly share code, notes, and snippets.

View ShaneK's full-sized avatar
🗡️
Slaying Code

Shane ShaneK

🗡️
Slaying Code
View GitHub Profile
### Keybase proof
I hereby claim:
* I am shanek on github.
* I am shanetheking (https://keybase.io/shanetheking) on keybase.
* I have a public key ASAfE0kK0g0FuNpQg4U_ahJVD4mg8Mskkrrvsz1mLHKuJQo
To claim this, I am signing this object:
@ShaneK
ShaneK / Button.hx
Last active December 19, 2015 17:08
Button Abstract Class
package entities;
import com.haxepunk.Entity;
import com.haxepunk.HXP;
import com.haxepunk.graphics.Image;
import com.haxepunk.utils.Input;
import com.haxepunk.utils.Key;
import com.haxepunk.utils.Touch;
import com.haxepunk.graphics.Text;
@ShaneK
ShaneK / gist:5327897
Last active December 15, 2015 21:48
Python method I plan to use to help me with markov chains.
import random
class PercentagePicker:
def PickRandomWord(self, setOfNumbers):
setOfRanges = []
maxInteger = -1
for miniSet in setOfNumbers:
temp = [miniSet[0], maxInteger + 1, maxInteger + miniSet[1]]
maxInteger += miniSet[1]