Skip to content

Instantly share code, notes, and snippets.

@choas
choas / mandelbrot.c
Created June 15, 2020 06:33
Mandelbrot Set calculation with complex.h
#include <stdio.h>
#include <complex.h>
int main(void)
{
double xl = -2.0;
double xu = 0.5;
double yl = -1.1;
double yu = 1.1;
@choas
choas / xor_keras.py
Last active June 1, 2018 19:25 — forked from cburgdorf/xor_keras.py
Comparing XOR between tensorflow and keras
import numpy as np
from keras.models import Sequential
from keras.layers.core import Activation, Dense
from keras.optimizers import SGD
training_data = np.array([[0,0],[0,1],[1,0],[1,1]], "float32")
target_data = np.array([[0],[1],[1],[0]], "float32")
model = Sequential()
model.add(Dense(8, input_dim=2, activation='tanh'))

Keybase proof

I hereby claim:

  • I am choas on github.
  • I am choas (https://keybase.io/choas) on keybase.
  • I have a public key ASCExoxyaUq6KZqwqFWnMU4UdYsLYCSJPOtdQvojzTDBrQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am choas on github.
* I am choas (https://keybase.io/choas) on keybase.
* I have a public key whose fingerprint is 170B 6127 61FA 28E1 2F19 644B 9509 8C2D 21CD 609B
To claim this, I am signing this object:
@choas
choas / knight.ino
Created December 28, 2011 20:01
Knight Rider for Arduino
/*
Knight Rider for Arduino
This example code is in the public domain.
*/
// define output pins
int outPins[] = {3, 4, 5, 6, 7, 8, 9, 10};
// timer
(defn hello-to [name]
(str "hello " (if (nil? name) "anonymous" name)))