Skip to content

Instantly share code, notes, and snippets.

View drewhoener's full-sized avatar

Drew Hoener drewhoener

View GitHub Profile
Collect.yml
DIAMONDS:
ITEM_TO_GET: !!org.bukkit.Material 'DIAMOND'
COLLECT_AMOUNT: 3
ITEM_ID: 0
Bread Winner:
ITEM_TO_GET: !!org.bukkit.Material 'BREAD'
COLLECT_AMOUNT: 32
ITEM_ID: 0
public class BitTests {
public static void main(String[] args) {
new BitTests().run();
}
void run(){
this.protocolManager = ProtocolLibrary.getProtocolManager();
this.protocolManager.addPacketListener(new PacketAdapter(this, PacketType.Play.Client.BLOCK_DIG) {
@Override
public void onPacketReceiving(PacketEvent event) {
for(EnumWrappers.PlayerDigType digType : event.getPacket().getPlayerDigTypes().getValues()) {
if(digType == EnumWrappers.PlayerDigType.ABORT_DESTROY_BLOCK) {
//Do Things Here
}
}
}
public class Book {
int numberSold;
private String name;
private double price;
public Book(String n, String p, int c) {
}
public static void createArray(){
//Create our scanner
Scanner scanner = new Scanner(System.in);
//Formatting! Just to make it pretty. We read in an integer with the scanner. The program knows to wait until you enter one
System.out.print("Enter an Array Length: ");
int length = scanner.nextInt();
//Create our array
int[] arr = new int[length];
public QuickSorter(SwapList<T> list, Comparator<T> comparator) {
super(list, comparator);
}
@Override
public SwapList<T> sort() {
//recQuickSort(0, list.size() - 1);
recQuickSort(0, list.size() - 1);
return this.list;
i=1
for monitor in $(bspc query -M); do
bspc monitor $monitor -d $monitor/1 $monitor/2 $monitor/3 $monitor/4 $monitor/5 $monitor/6 $monitor/7 $monitor/8 $monitor/9 $monitor/10
let i++
done

Keybase proof

I hereby claim:

  • I am drewhoener on github.
  • I am drewhoener (https://keybase.io/drewhoener) on keybase.
  • I have a public key ASD4-PQojMhILpwYNirbwqx7ORE2xlVohb3cbnwbL2AnEQo

To claim this, I am signing this object:

import json
from enum import Enum
def as_color_packet(packet_dict):
if '__type__' in packet_dict and packet_dict['__type__'] == 'ColorPacket':
return ColorPacket(packet_dict['color_mode'], packet_dict['rainbow_mode'], packet_dict['color'],
packet_dict['decay'], packet_dict['twinkle_ratio'],
packet_dict['min_scale'], packet_dict['max_scale'], packet_dict['delay_ms'])
#!/bin/bash
escrotum 'screenshot-%Y-%m-%d-%H:%M:%S.png' -e 'mv $f ~/images/screenshots'
notify-send "Screenshot Taken!"