Skip to content

Instantly share code, notes, and snippets.

View Pocketkid2's full-sized avatar

Adam Taylor Pocketkid2

  • Brigham Young University
  • Provo, Utah
View GitHub Profile
@Pocketkid2
Pocketkid2 / pom.xml
Last active April 6, 2022 18:09
[1.18] Template pom.xml for people who don't know what they're doing
<properties>
<author>Pocketkid2</author>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<packaging>jar</packaging>
<build>
<resources>
<resource>
@Pocketkid2
Pocketkid2 / LICENSE.txt
Created January 5, 2018 18:02
Copy this into the project directory
MIT License
Copyright (c) 2018 Adam Taylor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Pocketkid2
Pocketkid2 / plugin.yml
Last active April 6, 2022 18:09
[1.18] Template plugin.yml with all possible values
# Required
name: ${name}
version: ${version}
main: ${groupId}.${artifactId}.${name}Plugin # <- Change this if you have a different plugin cass name
# Optional
description: ${description}
api-version: 1.18 # <- Change this if you're building against a different version of spigot/minecraft
#load: STARTUP/POSTWORLD # <- Use this if you need your plugin to load before the worlds do
author: ${author}
@Pocketkid2
Pocketkid2 / stopwatch.c
Last active August 8, 2022 21:07
Barebones library in C for timing things (uses POSIX time definition for counting elapsed seconds and milliseconds)
#include "stopwatch.h"
#include <sys/time.h>
#include <stdlib.h>
struct stop_watch {
struct timeval start;
struct timeval end;
};
Stopwatch stopwatch_create() {