Skip to content

Instantly share code, notes, and snippets.

View ideaflare's full-sized avatar

Christoph ideaflare

View GitHub Profile
// arrange some guinea pig for testing
class Sheep
{
// public get & set used to read/write values
public string Name { get; set; }
public IceCream FavouriteIceCream { get; set; }
}
enum IceCream
{
Vanilla,
@ideaflare
ideaflare / NeuralNet.fsx
Last active May 19, 2016 10:48
Basic Feed-Forward Neural network in F#, tested with crude random search training to generalize XOR.
//------------------------------- Create Network -------------------------------
type Neuron = { Weights : float list ; Bias : float }
type Layer = { Neurons : Neuron list }
type Network = { Layers : Layer list }
let rnd = System.Random()
let randomWeight _ = (2.0 * rnd.NextDouble()) - 1.0
let buildNeuron inputs =
@ideaflare
ideaflare / cs6Singleton.cs
Created January 22, 2016 13:56
Singleton pattern in C# 6
public static SharedResource Instance { get; } = new SharedResource();
private SharedResource() {}
@ideaflare
ideaflare / AgileWisdom.md
Last active October 23, 2015 09:17 — forked from chasingbob/AgileWisdom.md
Agile Wisdom

######DeveloperUG 13 October 2015

######Paul:

###Balance Love what you do

###Communication Choose your medium - you do not write in the same style on slack/skype than how you would in a formal e-mail.