This file contains hidden or 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
| //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; |
This file contains hidden or 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
| #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 | |
| */ |
This file contains hidden or 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
| 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 , %{}} |
This file contains hidden or 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
| #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 |
This file contains hidden or 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
| #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); |
This file contains hidden or 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
| { | |
| BHeap (with KeyValuePair / Tuple ) | |
| @author(Jan Caspar <[email protected]>) | |
| @abstract(bheap implementation) | |
| @created(2017-06-19) | |
| @lastmod(2017-06-20) | |
| } | |
| UNIT BHeap; | |
| INTERFACE |