Skip to content

Instantly share code, notes, and snippets.

View cwkx's full-sized avatar

Chris Willcocks cwkx

View GitHub Profile
@cwkx
cwkx / simple-gan.ipynb
Last active October 15, 2020 15:25
simple-gan.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwkx
cwkx / wasserstein-gan.ipynb
Last active February 3, 2020 22:56
wasserstein-gan.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwkx
cwkx / unet.ipynb
Last active October 17, 2020 19:27
unet.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwkx
cwkx / variational-autoencoder.ipynb
Last active November 19, 2021 18:25
variational-autoencoder.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwkx
cwkx / coursework-classifier.ipynb
Last active March 8, 2019 08:55
coursework-classifier.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwkx
cwkx / coursework-pegasus.ipynb
Last active February 25, 2021 20:36
coursework-pegasus.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwkx
cwkx / convnet.ipynb
Last active January 26, 2020 21:04
convnet.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwkx
cwkx / classifier.ipynb
Last active January 19, 2020 18:05
classifier.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package game;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.group.FlxSpriteGroup;
import flixel.util.FlxMath;
import flixel.util.FlxPoint;
import flixel.util.FlxSpriteUtil;
import flixel.input.touch.FlxTouch;
import flash.events.MouseEvent;
@cwkx
cwkx / doc.txt
Last active March 31, 2019 17:16
HaxeFlixel hscript component system with custom pre-processor in Script.hx
Scripting:
(1) Here is an example script (all one file):
#(init) input, sprite -- An "init" event (runs once) that initializes the "input" and "sprite" packages
Sprite.AddTrail(-1); -- This function is called from the sprite package (without sprite, it will crash)
#(init) controller -- Another "init" event that initializers the "controller" package (so that it can be used in update)
#(update) input, controller -- An "update" event that uses the "input" and "controller" packages
if (Input.Left())
Controller.Move(-100.0);