Skip to content

Instantly share code, notes, and snippets.

View justinoboyle's full-sized avatar
Probably drinking coffee.

Justin O'Boyle justinoboyle

Probably drinking coffee.
View GitHub Profile
mysql:
address: "localhost"
port: 3306
database: "your-app-name"
username: "user"
password: "pw"
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.UUID;
import net.minecraft.server.v1_8_R1.AttributeInstance;
@justinoboyle
justinoboyle / StatusCode.java
Created April 18, 2015 04:00
An enum class containing all HTTP Status Codes complete with definitions!
/**
*
* @author Programming: Justin (http://www.github.com/ArrayPro) and
* Information/Documentation:
* http://www.w3.org/Protocols/HTTP/HTRESP.html
* @see Feel free to use this software in your own programs, but please keep the
* credits shown here!
*/
public enum StatusCode {
@justinoboyle
justinoboyle / gist:bb5ad3531efd42ef1f3b
Created April 13, 2015 21:52
Truly random double example
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Example2 {
/**
* A final List<Double> of all previous double generated with
* generateUniqueDouble(), turned into a string with Double.valueOf(d);
*/
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class Example {
/**
* A final List<String> of all previous UUIDs generated with
* generateUniqueID(), turned into a string with uuid.toString();
*/