Skip to content

Instantly share code, notes, and snippets.

View HugoSilvaF's full-sized avatar
💭
OFFLINE

Hugo Leonardo da Silva Filho HugoSilvaF

💭
OFFLINE
View GitHub Profile
@HugoSilvaF
HugoSilvaF / TimerFormatter.java
Created October 25, 2018 19:38
Formatar o tempo em milisegundos para String
/*
* Copyright (C) 2018 Hugo Silva <hugosilvaf2@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@HugoSilvaF
HugoSilvaF / FileCopy.java
Last active October 25, 2018 15:30
Adicionado licença
/*
* Copyright (C) 2018 Hugo Silva <hugosilvaf2@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@HugoSilvaF
HugoSilvaF / database.php
Last active February 24, 2016 20:19
PHP Database connection
/*
Copyright © 2016 CrazyDev
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
/*
Copyright © 2016 CrazyDev
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
public class ScoreboardScroller implements Runnable {
private final Plugin plugin;
private final Thread thread;
private final Scoreboard scoreboard;
private String title;
private boolean usetTitleScoreboard;
@HugoSilvaF
HugoSilvaF / UUIDApi.java
Created December 3, 2015 12:04 — forked from FarisR99/UUIDApi.java
UUIDApi - Mineskin
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.UUID;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
public class UUIDApi {
private static final String API_LINK_PLAYER = "http://mineskin.ca/name/?uuid=";
@HugoSilvaF
HugoSilvaF / ItemSerialization.java
Created November 30, 2015 18:35 — forked from aadnk/ItemSerialization.java
ItemSerialization for Minecraft 1.7.9 that supports player inventories.
package com.comphenix.example;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.lang.reflect.Method;
import java.util.Arrays;
@HugoSilvaF
HugoSilvaF / EntityProximityDetector.java
Created November 30, 2015 18:27 — forked from aadnk/EntityProximityDetector.java
Entity proximity detection API
package com.comphenix.proximity;
import java.util.ArrayDeque;
import java.util.Collection;
import java.util.Deque;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
@HugoSilvaF
HugoSilvaF / REP.java
Created November 30, 2015 18:26 — forked from aadnk/REP.java
A read-eval print loop in Java using Rhino.
package com.comphenix.testing;
import java.io.PrintStream;
import java.util.Scanner;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
public class REP {
@HugoSilvaF
HugoSilvaF / Cooldowns.java
Created November 30, 2015 18:26 — forked from aadnk/Cooldowns.java
A very simple cooldown library.
package com.comphenix.example;
import org.bukkit.entity.Player;
import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;
public class Cooldowns {
private static Table<String, String, Long> cooldowns = HashBasedTable.create();