- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
struct Wave | |
{ | |
Vec2 dir; | |
float amplitude; | |
float waveLength; | |
}; | |
struct ImmutableCB | |
{ | |
float waveSteepness; |
// Clone of https://gist.github.com/Flafla2/1a0b9ebef678bbce3215 with more dimensions and seed generation. | |
public class PerlinGen | |
{ | |
private readonly int[] p; // Randomly shuffled array of values from 0 to 255. | |
// Values are repeated up to size of 512 to avoid using modulo operator. | |
public PerlinGen(int seed) | |
{ | |
// Generate p. |
#!/usr/bin/env python | |
# | |
# Hi There! | |
# | |
# You may be wondering what this giant blob of binary data here is, you might | |
# even be worried that we're up to something nefarious (good for you for being | |
# paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
# an entire copy of pip (version 22.3.1). | |
# | |
# Pip is a thing that installs packages, pip itself is a package that someone |
// Code ported from https://0fps.net/2012/06/30/meshing-in-a-minecraft-game/ | |
// Note this implementation does not support different block types or block normals | |
// The original author describes how to do this here: https://0fps.net/2012/07/07/meshing-minecraft-part-2/ | |
const int CHUNK_SIZE = 32; | |
// These variables store the location of the chunk in the world, e.g. (0,0,0), (32,0,0), (64,0,0) |
{ | |
"cmd": ["pandoc --pdf-engine=xelatex --filter=pandoc-citeproc -o '$file_base_name.pdf' '$file_name'"], | |
"selector": "text.html.markdown", | |
"shell": true | |
} |