Skip to content

Instantly share code, notes, and snippets.

View AustinLMayes's full-sized avatar

Austin Mayes AustinLMayes

View GitHub Profile


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

# 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?
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
);
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 {
@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>
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;
}
require 'fileutils'
class Job
attr_accessor :title, :path, :dest
def initialize(title, jobTitle, path, dest, inShared = true)
self.title = title
self.path = "/var/lib/jenkins/jobs/#{jobTitle}/lastSuccessful/archive/#{path}"
self.dest = inShared ? "/home/deploy/atlas/shared/#{dest}" : dest
end
@AustinLMayes
AustinLMayes / commons.js
Last active August 29, 2015 14:27
My Chaos Bot.
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function inWater(bot) {
if ((bot.blockAt(bot.entity.position.offset(0, -1, 0)) == null || bot.blockAt(bot.entity.position) == null)) {return false;};
return (bot.blockAt(bot.entity.position.offset(0, -1, 0)).name == "water" || bot.blockAt(bot.entity.position).name == "water")
}
module.exports.inWater=inWater;
@AustinLMayes
AustinLMayes / yamldoc.md
Last active August 29, 2015 14:27
YAMLBuddy Doc

###AvicusYAMLBuddy###

This plugin is a tool that will generate Avicus-ready YAML from regions and inventories.

####Requirements####

  • WorldEdit

####Commands#### /yamlbuddy   - Parent command, all commands should be prefixed with this.
  inventory  - Inventory parent command. All functions dealing with inventories are prefixed with this.

Austins-iMac:Desktop Austin$ node api.js
Quintus: DTM (v1), Created By: G_SKIPPY
REGIONS:
--- cyan-kf ---
type: cuboid
min: 31,35,-882
max: 49,32,-876
FLAG: build
- who: *
- message: &cYou cannot build in this part of the path!