Skip to content

Instantly share code, notes, and snippets.

@TheTurkeyDev
TheTurkeyDev / FizzBuzzCursed.java
Created October 12, 2021 03:38
The most cursed FizzBuzz implementation out there....
public class FizzBuzzCursed
{
//Magic numbers are bad >:(
private static final int ZERO = 0;
private static final int ONE = 1;
private static final int THREE = (int) Math.PI;
private static final int FIVE = 5;
private static final int ONE_HUNDRED = 100;
public static void main(String[] args)
@TheTurkeyDev
TheTurkeyDev / code.vba
Created June 2, 2021 04:17
VB Source Code for Snakeman | A Game Written in Microsoft Excel
Option Explicit
Const ms As Double = 0.000000011574
Public snakeX As Integer
Public snakeY As Integer
Public snakePos As Object
Public snakeLen As Integer
Public direction As Integer
Public gameState As Integer
Public roundNum As Integer
@TheTurkeyDev
TheTurkeyDev / noexplosion.json
Created February 19, 2020 15:04
Disable Draconic explosion reward
{
"no_explosion_kappa": {
"name": "No Kappa Explosion",
"description": "Removes the giant Kappa explosion",
"rewards_to_enable": [],
"rewards_to_disable": [
"matrix"
]
}
}
@TheTurkeyDev
TheTurkeyDev / connection.lua
Created February 19, 2020 06:06
Lua script to connect to Blargerist's 7DaysToStream App NamedPipe
local function splitOnSpace(s)
chunks = {}
for substring in string.gmatch(s, "%S+") do
table.insert(chunks, substring)
end
return chunks
end
local function parseInput(line)
local match = string.match(line, '[a-zA-Z]+')
...
15Jul2019 23:03:14.226] [Client thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
[15Jul2019 23:03:14.226] [Client thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
[15Jul2019 23:03:14.373] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512 textures-atlas
[15Jul2019 23:03:14.568] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/particle-atlas
[15Jul2019 23:03:14.568] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/painting-atlas
[15Jul2019 23:03:14.569] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128 textures/mob_effect-atlas
[15Jul2019 23:03:16.603] [Client thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: main, forge-1.14.3-27.0.51_mapped_snapshot_20190710-1.14.3.jar, Default
[15Jul2019 23:03:16.611] [Thr
@TheTurkeyDev
TheTurkeyDev / example_profile.json
Created March 20, 2019 12:01
Example Chance Cubes Profile
"test_profile_6": {
"name": "Test Profile",
"description": "This is a test profile demenstrating how a profile may look",
"rewards_to_enable": [],
"rewards_to_disable": [
"chancecubes:Sail_Away",
"chancecubes:Squid_Horde",
"chancecubes:Hot_Tub",
"chancecubes:Guardians"
],
@TheTurkeyDev
TheTurkeyDev / gist:c38a77df810eef9963504e736099863f
Last active March 28, 2019 18:01
Example of all Custom Chance Cube reward configurations
{
"Test":
{
"chance": 0,
"Block":
[
{"xOffSet":-1, "yOffSet":"%%RND(1,5)%%", "zOffSet":"%%RND(3)%%", "block":"%%[minecraft:dirt, minecraft:stone, minecraft:sand]%%", "falling":false, "delay":1, "relativeToPlayer":true, "removeUnbreakableBlocks":false}
],
"Message":
[