Skip to content

Instantly share code, notes, and snippets.

View eisenwinter's full-sized avatar
🐱

Jan eisenwinter

🐱
View GitHub Profile
//a simple version of conways game of life
//written according to https://de.wikipedia.org/wiki/Conways_Spiel_des_Lebens#Die_Spielregeln
// mit licensed - do what you want with it ... 2020 / jan
public class GameOfLife {
static final int SIZE_X = 12;
static final int SIZE_Y = 12;
public static void main(String[] args){
boolean[][] cells = new boolean[SIZE_X][SIZE_Y];
int generations = 300;
#include<stdio.h>
#include <math.h>
#include <pthread.h>
/*
return
using namespace std;
just to save for later */
*/
Jan_Maximilian.c:Jim_Geist:2: error: expected identifier or ‘(’ before ‘/’ token
*/
@eisenwinter
eisenwinter / cache.ex
Created June 24, 2019 09:11
GenServer Exploration ....
defmodule Cache do
use GenServer
@name Cacher
def start_link(opts \\[]) do
GenServer.start_link(__MODULE__, :ok, opts ++ [name: Cacher])
end
def init(:ok) do
{:ok , %{}}
@eisenwinter
eisenwinter / client.c
Last active May 26, 2018 09:08
NEP 26.5
#include<sys/types.h>
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<sys/socket.h>
#include<netdb.h>
#include<arpa/inet.h>
#define MAX_STR_LEN 255
@eisenwinter
eisenwinter / ue2.c
Created May 12, 2018 09:02
NEP Ue2
#include<sys/types.h>
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<sys/socket.h>
#include<netdb.h>
extern void server_process(int);
{
BHeap (with KeyValuePair / Tuple )
@author(Jan Caspar <[email protected]>)
@abstract(bheap implementation)
@created(2017-06-19)
@lastmod(2017-06-20)
}
UNIT BHeap;
INTERFACE