Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MageJohn
MageJohn / button.png
Last active August 30, 2019 22:37
GuiButtonSizeAnim
button.png
@MageJohn
MageJohn / snake.wren
Last active September 30, 2018 10:24
Simple snake game in Wren, for the TIC-80 fantasy console. Play with `tic80 snake.wren`, or place in the console's filesystem and load from there. Bear in mind there are rough edges, obvious bugs, and missing features. The basic game is there, though.
// title: Snake
// author: MageJohn
// desc: Snake game programmed in Wren
// script: wren
import "random" for Random
var HEAD = 256
var CORNER = 257
@MageJohn
MageJohn / cvimrc
Last active October 12, 2017 16:44
cvimrc
set smoothscroll
let hintcharacters="fdrecxjkuinm"
set autoupdate gist
@MageJohn
MageJohn / lights.py
Created December 8, 2015 16:13
Solution to Advent of Code Day 6, with image output including a heatmap effect, and a simple command line.
#!/usr/bin/python3
#
# Released to the public domain
#
# Solution to Advent of Code Day 6, with image output including a heatmap
# effect, and a simple command line.
#
# Usage: python3 lights.py INPUT SWITCH[,COLOURMAP,OUT_IMG]...
#
# Note that not all COLOURMAPs do anything interesting with all SWITCH types.

Keybase proof

I hereby claim:

  • I am magejohn on github.
  • I am magejohn (https://keybase.io/magejohn) on keybase.
  • I have a public key whose fingerprint is C8A2 04FE 1535 83F5 64F4 A7D4 2DF7 350C 2514 243A

To claim this, I am signing this object: