Skip to content

Instantly share code, notes, and snippets.

@cadenkriese
cadenkriese / vocab-finder.java
Created October 15, 2020 21:03
A basic script for finding vocab word in the text of a novel I read freshman year. The teacher would give us extra credit for finding the vocabulary words, I decided to work smarter not harder.
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
/**
* Created by Caden Kriese on 2/21/18.
@cadenkriese
cadenkriese / cleanup.py
Created January 13, 2020 03:25
Python json response cleanup method
def _cleanup(obj):
if isinstance(obj, Iterable) and sum(1 for e in obj) == 0:
return None
if isinstance(obj, dict):
plugin_dict = {}
for (k, v) in obj.items():
if k == "_cls":
k = "type"
if k.startswith('_'):
@cadenkriese
cadenkriese / Vehicles.java
Last active July 10, 2019 02:59
Excerpt of MineSwine Vehicles Code.
//© MineSwine 2019.
//Written by Caden Kriese (flogic)
public class Vehicle {
private World world;
private ItemStack[] inventoryContents;
private ItemStack[] inventoryArmorContents;
private ItemStack weapon;
private ArmorStand stand;
private VehicleType type;