Skip to content

Instantly share code, notes, and snippets.

View SagaciousZed's full-sized avatar

Edmond Poon SagaciousZed

View GitHub Profile
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active November 19, 2024 10:13
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;
@Wolvereness
Wolvereness / Localized.java
Created August 3, 2012 22:18
Localized abstract class
import static java.util.logging.Level.SEVERE;
import static org.bukkit.ChatColor.translateAlternateColorCodes;
import static org.bukkit.configuration.file.YamlConfiguration.loadConfiguration;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Array;
import java.util.List;
import java.util.Random;
@Watson1978
Watson1978 / github-flavored-markdown.rb
Created April 10, 2012 01:11
GitHub Flavored Markdown parser
#!/usr/local/bin/ruby
# To parse GitHub Flavored Markdown
#
# Setup
# $ sudo easy_install pygments
# $ sudo gem install pygments.rb
# $ sudo gem install redcarpet
require 'redcarpet'
require 'pathname'