Skip to content

Instantly share code, notes, and snippets.

View LizardLeliel's full-sized avatar

Evan Larose LizardLeliel

  • Halifax, Canada
View GitHub Profile
@LizardLeliel
LizardLeliel / a) main.cpp
Created January 23, 2015 16:43
Virtual Stack Things
#include <ostream>
#include <string>
#include "vStacks.h"
using namespace std;
int main(int argc, char** argv) {
virtualStack* thisThing = new spamNode("Hello");
@LizardLeliel
LizardLeliel / geneNetwork.py
Created June 22, 2015 14:51
Its a hardcoded neural network that was built so I could have just a neural network, regardless of implementation (so I can build off, reference, change, etc.). By the way its python3
# How nessecary is this?
class Gene:
def __init__(self, inNeuron, outNeuron, weight = 1):
# inNeuron and outNeuron represent array indices
self.inNeuron = inNeuron
self.outNeuron = outNeuron
self.weight = weight
def compareOuts(self, otherGene):
if self.outNeuron < otherGene.outNeuron: return -1
elif self.outNeuron > otherGene.outNeuron: return 1
@LizardLeliel
LizardLeliel / layeredNetwork.py
Created June 25, 2015 19:08
Two multi-layered perception neural networks, one using theano and the other not.
# My first layered neural network thingy,
# Whooooo.
# No Theano just yet. Maybe Numpy.
# Numpy will require me to express everything
# with as little iteration as possible. That's
# what bugs me about that library >_<. You can
# only hope everything broadcasts correctly!
import numpy
import theano
@LizardLeliel
LizardLeliel / transliteration.py
Last active October 17, 2015 17:25
A function for translating romaji into either hiragana or katana (but no way to do it reverse so far)
prefixTable = {
"" : 0 , "k" : 5 , "s" : 10, "t" : 15, "n" : 20,
"h" : 25, "m" : 30, "y" : 35, "r" : 40, "w" : 45,
"g" : 50, "z" : 55, "d" : 60, "p" : 65, "b" : 70,
"j" : 75, "ky": 80, "sh": 85, "ny": 90, "hy": 95,
"py": 100, "by": 105, "my": 110, "ch": 115, "ry": 120,
"gy": 125, "f" : 130, "ts": 135, "v" : 140,
"elongations" : 145,
"nn" : 150, ".": 151, "," : 152, "smalltsu" : 153, " " : 154,
@LizardLeliel
LizardLeliel / mail.muf
Last active February 5, 2016 02:23
muf code, for implementing a very functional @mail command to handle reading, sending, and deleting mail. Some parts aren't mine, but are used with permission. Other then that, most of this is my work.
(newmailsend.muf)
$include #3 (ansilib.muf)
$include #6 (Useful.muf)
( words appearing in this program in order:
greenline - pushes a greenline onto the stack.
usage - notifies the caller the basic commands.
usage2 - notifies the caller some more advanced commands.
sendusage - If a string is on the stack, it'll notify it to