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
use sdl2::rect::Rect; | |
use sdl2::pixels::Color; | |
use sdl2::event::Event; | |
use sdl2::keyboard::Keycode; | |
use rayon::prelude::*; | |
use crate::rand::Rng; | |
static mut neighbours: [(isize, isize); 216] = [(0, 0); 216]; | |
const CELLS_X: u32 = 400; |
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
import { filter, map, merge, pipe, share, tap } from 'wonka'; | |
/* | |
* Alternative to the default cacheExchange from urql (A GraphQL client). | |
* Mutations do not invalidate cached results, so in that regard, this | |
* implementation is inferior to the default one. Most people should probably | |
* use the standard cacheExchange and @urql/exchange-request-policy. This cache | |
* also ignores the 'network-and-cache' request policy. | |
* |
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 autoffi | |
/* | |
#cgo LDFLAGS: -lffi -ldl | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <dlfcn.h> | |
#include <ffi.h> | |
#include <stdint.h> | |
*/ |