Skip to content

Instantly share code, notes, and snippets.

@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active October 13, 2024 16:49
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;
@DanDiplo
DanDiplo / JS-LINQ.js
Last active October 31, 2024 12:33
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
@Vinc0682
Vinc0682 / Uncraftable Items.md
Last active November 15, 2022 15:33
Uncraftable Items

#Uncraftable Items This list generated against spigot 1.9.4 Material lists, which also cantains a lot of internal items / blocks which may be obtainable by crafting, like the BED_BLOCK which can be placed using a BED_ITEM...

EDIT: I quickly looked over the list and removed the most obvious ones, just comment if you find any more of these blocks 😄

  • AIR
  • GRASS
  • COBBLESTONE
  • SAPLING
  • BEDROCK
  • SAND
@samsheffield
samsheffield / UnityCodingCheatSheet.txt
Last active November 13, 2024 10:12
Unity C# Cheat Sheet
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting
@spiral6
spiral6 / InstallationGuideforAIDungeon2.md
Last active July 26, 2022 18:10
Installation Guide for AI Dungeon 2 (Windows)