GithubHelp home page GithubHelp logo

mileswatson / assorted-projects Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.12 MB

Abandon hope all ye who enter the land of incomplete, uncommented, and undocumented spaghetti code...

Python 68.67% Go 18.38% Brainfuck 1.38% JavaScript 3.23% HTML 0.31% Java 3.83% C++ 0.92% Swift 3.28%

assorted-projects's Introduction

assorted-projects

Abandon hope all ye who enter the land of incomplete, uncommented, and undocumented spaghetti code... Here are some highlights of my programming history...

For some of the projects, I have linked to a fantastic online IDE called repl.it.

Particle Simulation (Javascript)

Simulates perfect kinematic collisions of particles in a box. Parameters in the "canvas.js" file can be tweaked as wanted.

Try it here

Complex Function Animator (Python)

Animates complex functions, as given by the function "f(z)" in "main.py". Paramaters can be tweaked under the "grid.animate()" function. Performance is not great in the repl.it environment, Pygame runs much more smoothly locally.

Try it here

Evolution Simulator (Python)

A library that can be used as a framework to simulate evolution, based entirely on an overarching reference to the work of Charles Darwin. "Finches" live on "Islands" which ".pressure()" the finches, before undergoing ".select()"-ion.

Finches should be implimented by the user, but I have including the "NeuralNetwork(Finch)" class to represent numpy-based RNNs and a simple "Polynomial(Finch)" class too represent a polynomial. Sigmoid and Relu non-linear activation functions are available to use by default.

Finches only have two criteria:

  1. They must have a ".react()" function, that takes in a numpy array of inputs, and returns a numpy array of responses.
  2. They must have a ".mutate()" function that tweaks the parameters of the instance.

User created Islands should override the default ".test()" function, to allow custom training environments. In my example, I created a neural network that learns to play a simplified version of "Snake".

You can try it here

TCS-Oxford Computing Challenge mentorship stuff (Assorted)

Some random stuff I wrote to solve problems in preparation for the BIO. Some of the questions were quite specialised, the solutions may not make much sense on its own.

Knights Tour Problem in Swift

Wave Simulation Thing

Polynomials

Heap Optimised Dijkstra's Shortest Path

Above but in python

BrainFuckSimplified (Python)

Made a language that allows you to write concise and optimised Brainfuck code, because I needed more headaches in my life. Not sure how it worked, but it did.

Demo

Morse Code Radio (Python)

Made a thing to communicate using radio between to RPis. Not sure where the recieving code is, but the sending code works:

Lenk

A-Star Search Algorithm

Self explanatory... Lank

PoC Blockchain (Go)

Some really detailed comments here. Not really sure what the aim of this was, but it outputs true so it probably works? See for your self

RSA Encryption from Scratch (Java)

An implimentation of an RSA key generation, encryption, and decryption algorithms. My first Java program.

Its behind you

Key generation, my first C++ Program

SignMyFile(Python)

Random program that uses homemade RSA cryptography to sign a file.

REPL Link

Neural Network in Pure (Python)

Before I knew about OOP and the map function in Python. Try before you buy

GCSE Sort/Search Algorithms

See them here

CompressionEncryptionHashing (Python)

Not really sure what this was, something about compression, encrypting it, and then hashing it I think.

Lonk

Data Interpreter V2 (Python)

The second edition of my famous data interpreter. Don't know / want to know what it actually interprets, but it does. No returns

My Custom Hashing Function

Practically unbreakable, looking back I see no flaws in this algorithm whatsoever.

Use this in commercial software if you like lawsuits

Bank System

I cringe looking back at this, it uses a homemade RSA algorithm and can't save the user data.

Shield your eyes

Q&A

A very old attempt at understanding Siri/other voice assistants. Attempts to switch possession (my->your). AI is just if statements

Game Of Life (Python)

Here

Compiler (Python)

POCCL = Proof Of Concept Compiled Language. Beginning of explanation in a separate repo. It will compile code to NASM, use the NASM assembler, then link with GCC (might be able to get C interoperability working, fingers crossed).

Not finished yet, please don't judge.

assorted-projects's People

Contributors

mileswatson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.