Skip to content

Instantly share code, notes, and snippets.

View ducc's full-sized avatar

Joe Burnard ducc

  • UK
View GitHub Profile
@ducc
ducc / Bot prefixes.md
Last active December 13, 2015 22:17
A collection of prefixes that each bot uses for commands.

Bot prefixes:

  • spongybot: #
  • wee.bot: `
  • beta_bot: !
  • guster.conch: -
  • chester.bot.v2: $
  • infodousbot: ~
  • ptp.bot: .
  • pangeabot: @
  • phobiaknown: %

I spent a while writing this out, so please give it a read and try this out. You'll thank me soon!

Explenations

Why shouldn't you be using static?

Static is not evil, however you are using it wrong. This is known as 'static abuse'. http://stackoverflow.com/questions/1766715/when-not-to-use-the-static-keyword-in-java http://stackoverflow.com/questions/7026507/why-are-static-variables-considered-evil

I would highly advise checking out the first 20 or so of the new boston's java tutorials. Some may disagree, however I believe that they are very helpful

@ducc
ducc / Windows10-Setup.ps1
Last active August 29, 2015 14:26 — forked from NickCraver/Windows10-Setup.ps1
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@ducc
ducc / SimpleScoreboard.java
Last active August 29, 2015 14:25 — forked from mkotb/SimpleScoreboard.java
Non-flickering scoreboard implementation; create scoreboards with ease.
import com.google.common.base.Preconditions;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.*;
import java.util.*;
package de.zh32.slp;
import com.google.gson.Gson;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;