Skip to content

Instantly share code, notes, and snippets.

View ProgrammerDan's full-sized avatar
🤓

Daniel Boston ProgrammerDan

🤓
View GitHub Profile
@ProgrammerDan
ProgrammerDan / addgun-config.yml
Created October 24, 2017 15:30
Devoted Config Dump
debug: true
global:
xpPerBottle: 10
# Use this to define how guns that use XP, treat XP bottles.
self:
# Each section supports "give" -- true/false, "limit" -- counting number, time -- in ms, and resetOnDeath -- true/false
gun:
# Give decides if players can self give or not
give: true
# Limit determines how many guns a player can give themselves before a timeout is met. Timeout starts with first give.
@ProgrammerDan
ProgrammerDan / config.yml
Created July 5, 2017 18:33
Devoted ExilePearl config 7/5/2017
# database connection details redacted
general:
suicide_time_seconds: 180
pearls:
autofree_worldborder: true
free_by_throwing: false
hotbar_needed: true
decay_interval_min: 60
decay_amount: 8
start_value: 96
@ProgrammerDan
ProgrammerDan / blockcraft.txt
Last active June 16, 2017 13:22
Devoted Recipe Set
// Redstone - Based Materials to Blocks
craft
@override
@individualresults
redstone:0 + redstone:0 + redstone:0
redstone:0 + redstone:0 + redstone:0
redstone:0 + redstone:0 + redstone:0
= redstone_block:0:1
@ingredientcondition redstone | lore Copper T1 | failmsg false
@name Copper Block
@ProgrammerDan
ProgrammerDan / TeleportFix.java
Created November 11, 2016 15:25 — forked from aadnk/TeleportFix.java
Bukkit Teleport Invisibility Fix
package com.comphenix.example;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.server.EntityPlayer;
import net.minecraft.server.EntityTracker;
import net.minecraft.server.EntityTrackerEntry;
import net.minecraft.server.WorldServer;
@ProgrammerDan
ProgrammerDan / OpenSimplexNoise.java
Created April 13, 2016 04:58 — forked from KdotJPG/OpenSimplex2S.java
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
/*
* OpenSimplex Noise in Java.
* by Kurt Spencer
*
* v1.1 (October 5, 2014)
* - Added 2D and 4D implementations.
* - Proper gradient sets for all dimensions, from a
* dimensionally-generalizable scheme with an actual
* rhyme and reason behind it.
* - Removed default permutation array in favor of
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Random;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.integration.MessageHeaders.IdGenerator;
@ProgrammerDan
ProgrammerDan / cactusfarm-sign.txt
Last active August 29, 2015 14:10
Cactus Farm Generation
$${
// Before getting started, I recommend the following
// hotbar config:
// 1) Stack of cactus
// 2) Stack of sand
// 3) Stack of signs
// 4) Stack of cobble
// 5) Diamond pickaxe
// Put 4 stacks of cactus and sand, 8 stacks
@ProgrammerDan
ProgrammerDan / WolfToothbrush.java
Created April 11, 2014 01:55
WolfToothbrush in Node.js by toothbrush, with wrapper by ProgrammerDan
package animals;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.OutputStreamWriter;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.Callable;
@ProgrammerDan
ProgrammerDan / WolfCollectiveMemory.R
Last active August 29, 2015 13:58
Wolf Process Wrapper for plannapus' R submission to the Wolf Survival challenge on SE's code-golf forum
infile <- file("stdin")
open(infile)
repeat{
input <- readLines(infile,1)
type <- substr(input,1,1)
id <- substr(input,2,3)
if(nchar(input)>3){
info <- substr(input,4,nchar(input))
}else{
info <- NULL
@ProgrammerDan
ProgrammerDan / JavaGIS.java
Created February 28, 2014 04:55
Simple example of inserting PostGIS Polygon objects into a PostGIS-enabled Postgresql database.
import java.sql.*;
import java.util.*;
import java.lang.*;
import org.postgis.*;
public class JavaGIS {
public static void main(String[] args) {
java.sql.Connection conn;
try {