Skip to content

Instantly share code, notes, and snippets.

View AustinLMayes's full-sized avatar

Austin Mayes AustinLMayes

View GitHub Profile
public class CollectionUtils {
@Nullable
public static <C> C highestNumberObject(List<C> list, Class<? extends C> clazz, Function<C, Number> refMethod) {
C highest = list
.stream().filter(v -> v.getClass().equals(clazz))
.max((a,b) -> Integer.max(refMethod.apply((C) a).intValue(), refMethod.apply((C) b).intValue())).orElse(null);
return highest;
}
@AustinLMayes
AustinLMayes / original.xml
Created July 12, 2017 01:50
The Power of Inclusion and Groups
<map name="Bounce Mania" version="1.0.0" spec="1.0.0">
<include src="defaults.xml"/>
<authors>
<author uuid="47b15675a0484e8f863a0cbf86ba22dc"/>
<!-- profbananaslug -->
</authors>
<teams>
<team id="yellow" color="yellow" min="1" max="100">{colors.yellow}</team>
<team id="orange" color="orange" min="1" max="100">{colors.orange}</team>
</teams>
Started POST "/api?key=zYmfJFIO-WEJaoRMa-hpfa3wJXV1EZlO4_asVrNn&query=%7Busers%28username%3A%22ALM%22%29%7Busername%7D%7D" for ::1 at 2017-10-10 00:02:14 -0500
Processing by GraphqlController#execute as HTML
  Parameters: {"key"=>"zYmfJFIO-WEJaoRMa-hpfa3wJXV1EZlO4_asVrNn", "query"=>"{users(username:\"ALM\"){username}}"}
APIClient client = new APIClient("http://localhost:3000/api",
        "zYmfJFIO-WEJaoRMa-hpfa3wJXV1EZlO4_asVrNn");
 try {
CREATE OR REPLACE PACKAGE imp_expt AS
TYPE stringarray IS
TABLE OF VARCHAR2(500) INDEX BY BINARY_INTEGER;
PROCEDURE export (
tbl_name VARCHAR2,
cols stringarray,
prim_key VARCHAR2,
seq_start NUMBER,
seq_end NUMBER
);
# Pick the pool and droplet size needed to run a collection of pods in the most
# cost effective manner. We itterate over each usuable droplet size and choose
# the size which splits the workload in the most even fassion and costs the
# least of the other choices.
def pick_size_count(data)
# Array of usable droplet sizes baased on min memory
usable = @sizes
.select {|s| s.memory >= data[:memory] * 1.13}
# Just in case
usable = @sizes if usable.empty?


The Avicus Shop

Authored By swivr over 5 years ago (2014-05-15 20:07:48 UTC)


If you haven't noticed, the Avicus shop has been updated and modified quite a bit.Rank Updates: The Avicus hub has a new feature in which sufficiently upgraded users have trails that follow them upon double jumping. 5 total trails are now available in the shop. The kit, "random" has also been added to Emerald and Diamond which randomly chooses a kit when the game starts, even if not unlocked by the player.Rank Subscriptions: We now offer options for monthly payments for one fifth of the price for each rank. We hope this allows one, that users whom are unsure of purchasing the rank experience the rank as a trial of sorts, and two, to offer those whom are unable or unwilling to buy a rank due to the cost an alternative option. Those who do not intend on playing Avicus or Minecraft for the 5 months have a more affordable option. Note that prices may change in the futu