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
#!/usr/bin/env bash | |
######################################################################################### | |
# deploy_certificates.sh | |
# | |
# Copyright (c) 2023 Anthony Accioly <anthony@accioly.dev> | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
# Description: |
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
enum Shape: | |
case Diamond, Squiggle, Oval | |
enum Color: | |
case Red, Green, Purple | |
enum Shading: | |
case Open, Striped, Solid | |
enum NumberType: |
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
package com.rockthejvm.blog | |
import kotlinx.coroutines.* | |
import mu.KotlinLogging | |
import java.util.concurrent.Executors | |
// coroutine = "thread" | |
// parallel + concurrent apps | |
private val logger = KotlinLogging.logger {} |
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 | |
# Extracts Artist;Album and Title from a CSV file exported by Mp3tag | |
if [ $# -ne 1 ]; then | |
echo usage: cleanMp3tagCSV file | |
exit 1 | |
fi | |
ORIGINAL_FILE=$1 |
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.math.BigDecimal; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
/** | |
* Created by Anthony on 11/10/2014. | |
*/ | |
public class Teste { |
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
-------------------------------------------- | |
System.nanoTime() | |
-------------------------------------------- | |
Avg Time: 0.99 | |
Max Time: 1.90 | |
Min Time: 0.51 | |
-------------------------------------------- | |
System.currentTimeMillis() | |
-------------------------------------------- | |
Avg Time: 1.00 |