Skip to content

Instantly share code, notes, and snippets.

View dannydenenberg's full-sized avatar
💃
Probably in a musical

Danny Denenberg dannydenenberg

💃
Probably in a musical
View GitHub Profile
@dannydenenberg
dannydenenberg / nn.py
Last active April 20, 2019 15:29
A neural network in python 3.
import numpy as np
learn_rate = 0.01
# set inputs
X = np.array([[1,1,1],
[1,1,0],
[1,0,1],
[0,1,1],
[0,1,0],
val a: String = "hello" // constant (value)
var b: String = "goodbye" // variable
fun main(args: Array<String>) {
b = "oops"
// kotlin handles null
var myVar: String? = null // you can only asign null to optionals like this
@dannydenenberg
dannydenenberg / Timer.java
Created November 11, 2018 15:02
A timer class to use with Java programs. Easy timing of any interval within a program.
import java.util.ArrayList;
import java.util.List;
/**
* Times anything
*/
public class Timer {
private double miliseconds;
private Thread thread;
private boolean timing;
@dannydenenberg
dannydenenberg / create-title-links.py
Created June 26, 2018 16:39
This will create the links for a contents part of a markdown file.
@dannydenenberg
dannydenenberg / raspberrypi-server.md
Last active June 26, 2018 16:37
Creating and using a server on your raspberry pi.