Skip to content

Instantly share code, notes, and snippets.

@spiral6
spiral6 / InstallationGuideforAIDungeon2.md
Last active July 26, 2022 18:10
Installation Guide for AI Dungeon 2 (Windows)
// 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
@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
@DanDiplo
DanDiplo / JS-LINQ.js
Last active June 25, 2024 23:39
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 },
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active July 5, 2024 17:32
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;