Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
OFFLINE

HugoSilvaF HugoSilvaF

💭
OFFLINE
View GitHub Profile
@HugoSilvaF
HugoSilvaF / TimerFormatter.java
Created Oct 25, 2018
Formatar o tempo em milisegundos para String
View TimerFormatter.java
/*
* 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 Feb 24, 2016
PHP Database connection
View database.php
/*
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
View database.php
/*
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
@HugoSilvaF
HugoSilvaF / FileCopy.java
Last active Oct 25, 2018
Adicionado licença
View FileCopy.java
/*
* 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
View ScoreboardScroller.java
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 Dec 3, 2015 — forked from FarisR99/UUIDApi.java
UUIDApi - Mineskin
View UUIDApi.java
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 Nov 30, 2015 — forked from aadnk/ItemSerialization.java
ItemSerialization for Minecraft 1.7.9 that supports player inventories.
View ItemSerialization.java
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;
View EntityProximityDetector.java
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 Nov 30, 2015 — forked from aadnk/REP.java
A read-eval print loop in Java using Rhino.
View REP.java
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 Nov 30, 2015 — forked from aadnk/Cooldowns.java
A very simple cooldown library.
View Cooldowns.java
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();