Skip to content

Instantly share code, notes, and snippets.

View AllanCapistrano's full-sized avatar
👾
Playing or watching anime

Allan Capistrano AllanCapistrano

👾
Playing or watching anime
View GitHub Profile
@AllanCapistrano
AllanCapistrano / dockerfile-java-ant
Last active August 13, 2022 17:33
Dockerfile to Java + Ant projects
FROM alpine
# Change to root directory
WORKDIR /root
# Install OpenJDK8
RUN apk add openjdk8
# Install Apache Ant
RUN apk add apache-ant
@AllanCapistrano
AllanCapistrano / gitignore
Created October 21, 2021 19:08
Java gitignore
# Java
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
@AllanCapistrano
AllanCapistrano / ipList.md
Created February 27, 2022 22:18
Overwatch Servers IP in South America

Brazilian Servers

  1. To: 177.71.0.0 From: 177.71.255.255

  2. To: 52.67.0.0 From: 52.67.255.255

  3. To: 54.94.0.0 From: 54.94.255.255

@AllanCapistrano
AllanCapistrano / kmeans.java
Last active July 28, 2024 18:41
Implementação do algoritmo K-means em Java que pode ser executado em um array unidimensional.
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Main {
public static void main(String[] args) {
double[] data = {0.98264424, 0.25215435, 0.74409057, 0.75786744, 0.07386903,
0.117157 , 0.97317236, 0.95556455, 0.5144924 , 0.42371915,
0.92337679, 0.8653283 , 0.36893858, 0.34717299, 0.30595674,