Skip to content

Instantly share code, notes, and snippets.

View markuman's full-sized avatar
🐧
Linux Only - fail fast, move on

Markus Bergholz markuman

🐧
Linux Only - fail fast, move on
  • Lekker Energie GmbH
  • Berlin
View GitHub Profile
@markuman
markuman / main.py
Created October 13, 2016 10:36 — forked from miloharper/main.py
A two layer neural network written in Python, which trains itself to solve a variation of the XOR problem. [FORK and EDIT for PYTHON3]
from numpy import exp, array, random, dot
class NeuronLayer():
def __init__(self, number_of_neurons, number_of_inputs_per_neuron):
self.synaptic_weights = 2 * random.random((number_of_inputs_per_neuron, number_of_neurons)) - 1
class NeuralNetwork():
def __init__(self, layer1, layer2):
@markuman
markuman / cltools.sh
Created February 11, 2016 11:03 — forked from jellybeansoup/cltools.sh
Install Autoconf and Automake on OS X Mountain Lion
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
export build=~/devtools # or wherever you'd like to build
@markuman
markuman / burger.css
Created November 5, 2015 05:00 — forked from neingeist/burger.css
twitterburger (für stylish firefox extension)
@-moz-document domain(twitter.com) {
.HeartAnimationContainer {
visibility: hidden;
}
.HeartAnimationContainer:after {
content: '🍔';
visibility: visible;
display: block;
position: absolute;
@markuman
markuman / gist:6bcaca0a4d668220ff2b
Last active August 29, 2015 14:26 — forked from mikeyk/gist:1329319
Testing storage of millions of keys in Redis
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])