Skip to content

Instantly share code, notes, and snippets.

View sustained's full-sized avatar
😓
working on website remake in Saber and exploring generative art and fractals

sustained sustained

😓
working on website remake in Saber and exploring generative art and fractals
View GitHub Profile
@sustained
sustained / README.md
Last active July 16, 2022 08:26
Automatically clean up timers (setInterval, setTimeout) and event listeners (addEventListener) for Vue.js.

What?

It automatically cleans up timers and event listeners in beforeUnmount.

Why?

Because who wants to write boilerplate? And I was bored. And it seemed like a really good idea, until I wrote it.

Note

@sustained
sustained / spout_example_sinkholes.json
Created July 11, 2019 23:35
CoFH World Examples - Feature Types - Spout (Sinkholes)
{
"populate": {
"spout_example": {
"distribution": "cave",
"generator": {
"type": "spout",
"block": "minecraft:air",
"radius": 3,
"height": {
"value-a": {
{
"populate": {
"dirt": {
"distribution": "uniform",
"generator": {
"block": "dirt",
"material": "minecraft:stone",
"cluster-size": 33
},
"cluster-count": 10,
@sustained
sustained / structure_example.json
Last active July 12, 2019 00:56
CoFH World Examples - Feature Types - Structure
{
"populate": {
"structure_example": {
"distribution": "surface",
"generator": {
"type": "structure",
"structure": "example_structure.nbt",
},
"material": [
"minecraft:dirt",
@sustained
sustained / stalagmite_example.json
Last active July 12, 2019 00:56
CoFH World Examples - Feature Types - Stalagmite
{
"populate": {
"stalagmite_example": {
"distribution": "surface",
"generator": {
"block": "minecraft:mossy_cobblestone",
"type": "stalagmite",
"diameter": 3,
"count": 1
},
@sustained
sustained / stalactite_example.json
Last active July 12, 2019 00:25
CoFH World Examples - Feature Types - Stalactite
{
"populate": {
"stalactite_example": {
"distribution": "cave",
"generator": {
"block": "minecraft:mossy_cobblestone",
"type": "stalactite",
"diameter": 3,
"count": 1
},
@sustained
sustained / spout_example.json
Last active July 12, 2019 00:01
CoFH World Examples - Feature Types - Spout
{
"populate": {
"spout_example": {
"distribution": "surface",
"generator": {
"type": "spout",
"block": "minecraft:cobblestone",
"radius": 0,
"height": {
"min": 30,
@sustained
sustained / spike_example.json
Last active July 9, 2019 00:38
CoFH World Examples - Feature Types - Spike
{
"populate": {
"spike_example": {
"distribution": "surface",
"chunk-chance": 16,
"cluster-count": 4,
"generator": {
"type": "spike",
"block": {
"name": "minecraft:stained_hardened_clay",
@sustained
sustained / sparse_cluster_example.json
Last active July 8, 2019 23:47
CoFH World Examples - Feature Types - Sparse Cluster
{
"populate": {
"cluster_example": {
"distribution": "uniform",
"chunk-chance": 8,
"cluster-count": 10,
"min-height": 0,
"max-height": 64,
"generator": {
"type": "cluster",
@sustained
sustained / small_tree_example.json
Last active July 8, 2019 23:43
CoFH World Examples - Feature Types - Small Tree
{
"populate": {
"small_tree_example": {
"distribution": "surface",
"chunk-chance": 32,
"cluster-count": 1,
"generator": {
"type": "small-tree",
"block": "minecraft:netherrack",
"leaves": "minecraft:soul_sand",