Skip to content

Instantly share code, notes, and snippets.

View aarontwf's full-sized avatar

Aaron Wilson aarontwf

View GitHub Profile
@aarontwf
aarontwf / main.dart
Created February 2, 2022 20:35
Input Chip
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
#include <Ethernet2.h>
#include <SPI.h>
#include <SkaarhojPgmspace.h>
// MAC address and IP address for this *particular* Arduino / Ethernet Shield!
// The MAC address is printed on a label on the shield or on the back of your device
// The IP address should be an available address you choose on your subnet where the switcher is also present
byte mac[] = { 0x90, 0xA2, 0xDA, 0x10, 0x0B, 0x68 }; // <= SETUP! MAC address of the Arduino
IPAddress clientIp(192, 168, 10, 99); // <= SETUP! IP address of the Arduino
#include <OneButton.h>
#include <MIDI.h>
#include <SoftwareSerial.h>
// Constants
const int timelineChannel = 1;
const int bigskyChannel = 2;
const int displayTx = 10;
const int displayRx = -1;
@aarontwf
aarontwf / motherboard-cmd.txt
Created November 4, 2015 22:59
Motherboard Command
wmic baseboard get product,Manufacturer,version,serialnumber
World world = Bukkit.getWorlds().get(0);
Horse horse = (Horse) world.spawnEntity(new Location(world, 0, 128, 0), EntityType.HORSE);
horse.setCustomName("Spawn Point");
horse.setCustomNameVisible(true);
WitherSkull skull = (WitherSkull) world.spawnEntity(new Location(world, 0, 128, 0), EntityType.WITHER_SKULL);
skull.setPassenger(horse);
@aarontwf
aarontwf / loginform.vb
Created March 19, 2013 02:00
Simple Access login form code
' Blank Usernames
If IsNull(cboUsername) Or cboUsername = "" Then
MsgBox "Enter Username", vbOKOnly, "Required Data"
cboUsername.SetFocus
Exit Sub
End If
' Blank Passwords
If IsNull(txtPassword) Or txtPassword = "" Then
MsgBox "Enter Password", vbOKOnly, "Required Data"
@aarontwf
aarontwf / WitherFormationFinder.java
Created November 29, 2012 10:35
Wither bedrock formation finder
import java.util.HashSet;
import java.util.Set;
import org.bukkit.Location;
import org.bukkit.Material;
/**
* Utility class for searching for the natural bedrock formation used to assist
* in killing a Wither.
* @author LimeByte
@aarontwf
aarontwf / crash-2012-10-21_22.55.05-server.txt
Created October 21, 2012 10:29
Minecraft Crash Report 10/21/12 10:55 PM
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
Time: 10/21/12 10:55 PM
Description: Exception in server tick loop
java.lang.IndexOutOfBoundsException: Index: 36, Size: 36
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.remove(Unknown Source)
at net.minecraft.server.World.tickEntities(World.java:1137)
@aarontwf
aarontwf / BNHookExample.java
Created June 26, 2012 04:33
Untested example of hooking into BattleNight
package me.limebyte.bnhookexample;
import java.util.logging.Logger;
import me.limebyte.battlenight.core.BattleNight;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;