Skip to content

Instantly share code, notes, and snippets.

View jaredtbates's full-sized avatar

Jared Bates jaredtbates

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jaredtbates on github.
  • I am jaredtbates (https://keybase.io/jaredtbates) on keybase.
  • I have a public key ASDPRtYr2JNn-o5PlyCq5vqoclyaQBKTMPb-1BOg0HecLAo

To claim this, I am signing this object:

@jaredtbates
jaredtbates / Differentiation.java
Created September 2, 2022 02:04
A little differentiation class I wrote for my Numerical Methods homework, a bit overkill, but had fun doing it!
import java.lang.Class;
import java.lang.Math;
import java.util.function.Function;
public class Differentiation {
private static final double TARGET_ERROR = 1 * Math.pow(10, -8);
private static final Function<Double, Double> FUNCTION = (Double x) -> ((7 * Math.pow(x, 3)) - (5 * x) + 1) / ((2 * Math.pow(x, 4)) + Math.pow(x, 2) + 1);
private static final double X = 3;
private static final double H = 1;
@jaredtbates
jaredtbates / create-or-update-stackset.sh
Created January 19, 2020 04:10 — forked from mdjnewman/create-or-update-stack.sh
A script to use AWS CLI to create or update a CloudFormation stackset
#!/usr/bin/env sh
# Adapted from https://gist.github.com/mdjnewman/b9d722188f4f9c6bb277a37619665e77
usage="Usage: $(basename "$0") stack-set-name template-file administration-role-name execution-role-name
where:
stack-set-name - the stack set name
template-file - the file path of the template
administration-role-name - the name of the administration role
execution-role-name - the name of the execution role
"
@jaredtbates
jaredtbates / ItemBuilder.java
Created August 3, 2015 13:18 — forked from MiniDigger/ItemBuilder.java
ItemBuilder that extends ItemStack, so no .build() is required.
import org.bukkit.*;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.LeatherArmorMeta;
import org.bukkit.material.MaterialData;
import java.util.ArrayList;
import java.util.List;
### Keybase proof
I hereby claim:
* I am computerwizjared on github.
* I am computerwizjared (https://keybase.io/computerwizjared) on keybase.
* I have a public key whose fingerprint is C7C6 BBD3 1F9A 07CD DF11 AF67 315B 0664 45F8 EFB6
To claim this, I am signing this object: