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
// The MIT License (MIT) | |
// | |
// Copyright (c) 2012-2013 Mikola Lysenko | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
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
/* OpenSimplex Noise in C# | |
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
* and heavily refactored to improve performance. */ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace NoiseTest |
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
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt-get update | |
sudo apt-get install python3.6 python3.6-dev | |
wget -O - https://bootstrap.pypa.io/get-pip.py | sudo python3.6 |
TODO: Organize these...
- http://jayelinda.com/modelling-by-numbers-part-1a
- heredragonsabound.blogspot.ca/2016/10/making-islands.html?m=1
- https://heredragonsabound.blogspot.ca/2016/10/mountains.html
- gamasutra.com/blogs/AAdonaac/20150903/252889/Procedural_Dungeon_Generation_Algorithm.php
- redblobgames.com/maps/terrain-from-noise
- https://developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch01.html
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 <iostream> | |
#include <string> | |
#include <vector> | |
#include <array> | |
#include <list> | |
#include <cmath> | |
#include <opencv2/opencv.hpp> |
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
# Generate version.h using data from git repository | |
# | |
# @author Natesh Narain | |
# @date Oct 15 2016 | |
# | |
find_package(Git) | |
function(generate_version_info) |
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
# | |
# Script to bump version number in a git repo | |
# | |
# @author Natesh Narain <[email protected]> | |
# | |
import subprocess | |
from argparse import ArgumentParser | |
import os |
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
# | |
# Genetic algorithm example from http://www.ai-junkie.com/ga/intro/gat1.html | |
# | |
# @author Natesh Narain | |
# @date July 9 2016 | |
# Rule are encoded in the genes | |
# Long string of genes make up chromosomes | |
# Solution must have a way of being encoded into a chromosome |