This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"image" | |
"image/color" | |
"image/png" | |
"log" | |
"math/cmplx" | |
"os" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compile: | |
mpic++ philosophers.cpp -o philosophers | |
Use: | |
mpiexec -np 6 philosophers | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |