Skip to content

Instantly share code, notes, and snippets.

View markusos's full-sized avatar

Markus Östberg markusos

View GitHub Profile
@markusos
markusos / KukuKubeSolver.js
Last active July 16, 2016 14:49
Solves the color tests on www.kuku-kube.com automatically
/* KukuKube Solver
*
* Solves the color tests on www.kuku-kube.com automatically.
* To run this, run the javascript code below in the browsers developer console.
* The script identifies the uniquely colored box in the box grid and uses javascript to click on it.
*
* WARNING: Don't run the script if you have epilepsy! It will flash different colors fast when it solves the color tests.
*
* MIT License (MIT)
* Copyright (c) 2015 Markus Östberg
@markusos
markusos / mandelbrot.go
Created November 25, 2013 22:39
mandelbrot.go - Draw the Mandelbrot set using GO
package main
import (
"image"
"image/color"
"image/png"
"log"
"math/cmplx"
"os"
)
@markusos
markusos / philosophers.cpp
Last active December 28, 2015 08:39
Philosophers.cpp - Using MPI to solve the Dining philosophers problem.
/*
Compile:
mpic++ philosophers.cpp -o philosophers
Use:
mpiexec -np 6 philosophers
*/
#include <stdio.h>
#include <stdlib.h>