Skip to content

Instantly share code, notes, and snippets.

@comfysquirrel
comfysquirrel / README.md
Last active March 9, 2023 07:56
Item order mistake analysis for CaptainSparklez Minecraft: Ten Squared Ultimate #2
@comfysquirrel
comfysquirrel / tilt.js
Created May 17, 2020 00:21
skew every element on a page
(function(){
var elm = document.querySelectorAll('*');
function rand(min, max) {
var range = max - min + 1;
return Math.floor(Math.random()*range + min);
}
for (i = 0; i < elm.length; i++) {
elm[i].style.transform = 'rotate(' + rand(0, 360) + 'deg)';
}
#!/bin/sh
base=$HOME/github/smartiq/wallpaper-splitter
python3 $base/src/wallpaper-splitter.py -m $base/resources/monitor_defs/dual_4k.json "$1"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include "finders.h"
#include <stdio.h>
int main() {
initBiomes();
LayerStack g = setupGenerator(MC_1_14);
int64_t seed;
@comfysquirrel
comfysquirrel / bounce.lua
Last active January 17, 2020 19:28
Screensavers for ComputerCraft startup.lua
-- by jonthesquirrel 2020
-- gist.github.com/jonthesquirrel
-- close trapdoor
redstone.setOutput("top", true)
-- config
-- commented out lines are for text at
-- top of screen
--local text = "Welcome to jon's room!"
ffmpeg -i title.mp4 title/frame-%10d.png
convert "title/*.png" -compose multiply -flatten title_multiply.png
convert "title/*.png" -compose darken -flatten title_darken.png
<< PolyhedronOperations`
Geodesate[PolyhedronData["Icosahedron"], 2]
/tp @a[x=-30000000,y=-1000,z=-30000000,dx=60000000,dy=999,dz=60000000] ~ ~1 ~
@comfysquirrel
comfysquirrel / conveyor.mcfunction
Created May 21, 2018 05:47
20m/s player travel
# move at 20m/s if standing on block
execute as @a at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta[facing=south] run teleport @s ~ ~ ~-1
execute as @a at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta[facing=west] run teleport @s ~1 ~ ~
execute as @a at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta[facing=north] run teleport @s ~ ~ ~1
execute as @a at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta[facing=east] run teleport @s ~-1 ~ ~
# move at 20m/s if 2 above block
execute as @a at @s if block ~ ~-2 ~ minecraft:magenta_glazed_terracotta[facing=south] run teleport @s ~ ~ ~-1
execute as @a at @s if block ~ ~-2 ~ minecraft:magenta_glazed_terracotta[facing=west] run teleport @s ~1 ~ ~
execute as @a at @s if block ~ ~-2 ~ minecraft:magenta_glazed_terracotta[facing=north] run teleport @s ~ ~ ~1
execute as @a at @s if block ~ ~-2 ~ minecraft:magenta_glazed_terracotta[facing=east] run teleport @s ~-1 ~ ~