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
{ | |
"minecraft:worldgen/biome": { | |
"value": [ | |
{ | |
"id": 0, | |
"element": { | |
"precipitation": "none", | |
"temperature": 0.5, | |
"downfall": 0.5, | |
"effects": { |
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
// WARNING: Old code. Wrote this a while ago. | |
//! An interface for solving Constraint Satisfaction Problems (CSPs) | |
use bitvec::prelude::*; | |
use indexmap::IndexSet; | |
use log::warn; | |
use ndarray::prelude::*; | |
use num_enum::IntoPrimitive; | |
use rand::{distributions::WeightedError, prelude::*}; |
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
// (Public domain, created by Ryan Johnson) | |
// A simple calculator in C using Pratt parsing. | |
// compile with `cc -lm calc.c` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdarg.h> | |
#include <inttypes.h> | |
#include <ctype.h> | |
#include <math.h> |
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
// (Public domain, created by Ryan Johnson) | |
// A simple recursive descent calculator in C. | |
// compile with `cc -lm calc.c` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdarg.h> | |
#include <inttypes.h> | |
#include <ctype.h> | |
#include <math.h> |
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 random | |
# Generates markov chains using sequences of characters | |
class MarkovChar: | |
def __init__(self, seq_size): | |
# key type: chracter sequence | |
# value type: another map of character sequences to ints (occurance count) | |
self.prob_map = {} | |
self.seq_size = seq_size |