Skip to content

Instantly share code, notes, and snippets.

@Scoppio
Scoppio / co.c
Created February 27, 2019 17:05 — forked from lpereira/co.c
#include <stdio.h>
#include <stdbool.h>
struct coro {
void *state;
};
struct range_coro {
struct coro base;
int cur, max, step;
@Scoppio
Scoppio / ecs.md
Created February 17, 2019 03:39 — forked from paniq/ecs.md
Entity Component Systems
@Scoppio
Scoppio / min-char-rnn.py
Created January 27, 2017 23:43 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)