This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Movimentacao implements Cloneable { | |
private int id; | |
private String descricao; | |
public Movimentacao(int id, String descricao) { | |
this.descricao = descricao; | |
this.id = id; | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logs after deploy with min_machines_running = 0 | |
2023-12-12 15:55:44.753 [competeaqui_fly_io_logs] [INFO] gru 8522 6e82d2e7c020e8 competeaqui-staging 2023-12-12T18:55:44.753Z INFO 314 --- [ main] b.c.competeaqui.CompeteAquiApplication : Started CompeteAquiApplication in 15.256 seconds (process running for 16.305) | |
2023-12-12 16:03:21.036 [competeaqui_fly_io_logs] [INFO] gru 8522 6e82d2e7c020e8 competeaqui-staging Downscaling app competeaqui-staging from 1 machines to 0 machines, stopping machine 6e82d2e7c020e8 (region=gru, process group=app) | |
2023-12-12 16:03:21.036 [competeaqui_fly_io_logs] [INFO] gru 8522 6e82d2e7c020e8 competeaqui-staging Downscaling app competeaqui-staging from 1 machines to 0 machines, stopping machine 6e82d2e7c020e8 (region=gru, process group=app) | |
2023-12-12 16:03:21.039 [competeaqui_fly_io_logs] [INFO] gru 8522 6e82d2e7c020e8 competeaqui-staging INFO Sending signal SIGINT to main child process w/ PID 314 | |
2023-12-12 16:03:21.039 [competeaqui_fly_io_logs] [INFO] gru 8522 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local _G, table, string, math, tonumber, tostring, type, print = _G, table, string, math, tonumber, tostring, type, print | |
---Módulo para validação de dados | |
--@author Manoel Campos da Silva Filho - http://manoelcampos.com | |
--@version 0.2 | |
module "valid" | |
---Divide uma string utilizando um determinado separador existente nela. | |
--Fonte: http://lua-users.org/wiki/SplitJoin | |
--@param self String a ser dividida |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.cloudbus.cloudsim.Cloudlet; | |
import org.cloudbus.cloudsim.CloudletSchedulerTimeShared; | |
import org.cloudbus.cloudsim.Datacenter; | |
import org.cloudbus.cloudsim.DatacenterBroker; | |
import org.cloudbus.cloudsim.DatacenterCharacteristics; | |
import org.cloudbus.cloudsim.Host; | |
import org.cloudbus.cloudsim.Log; | |
import org.cloudbus.cloudsim.Pe; | |
import org.cloudbus.cloudsim.UtilizationModel; | |
import org.cloudbus.cloudsim.UtilizationModelFull; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.d3x.morpheus.array.Array; | |
import com.d3x.morpheus.frame.DataFrame; | |
import com.d3x.morpheus.frame.DataFrameValue; | |
import java.util.List; | |
public class DataFrameRowColRemoval { | |
public static void main(String[] args) { | |
new DataFrameRowColRemoval(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Runs macOS homebrew as if it was the Debian/Ubuntu's apt-get command, | |
# just because "why not?" | |
# Usage: | |
# sudo apt-get parameters | |
# or apt-get parameters | |
# Example: sudo apt-get install git | |
# | |
# Move the script to /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then | |
echo " | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a dir. | |
Usage: `basename "$0"` netbeans_dir | |
- netbeans_dir: The directory containing all the files for a specific NetBeans release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sends a key and mouse click repeatedly, at a defined time interval. | |
# Author - Manoel Campos | |
clear | |
#Checks if xdotool command is installed. If not, installs it | |
xdotool -v 2>/dev/null || echo 'Installing required tools...' && sudo apt-get install xdotool -y > /dev/null | |
echo '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Objects; | |
import java.util.stream.Collectors; | |
import java.util.function.Function; | |
import java.lang.reflect.Array; | |
public class Option3<T>{ | |
private int length; | |
private String defaultValue; | |
private final Class<T> klass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Objects; | |
import java.util.stream.Collectors; | |
import java.util.function.Function; | |
import java.lang.reflect.Array; | |
public class Option2<T>{ | |
private int length; | |
private String defaultValue; | |
private final Function<String, T> conversionFunction; |
NewerOlder