A Pen by Massimo Santini on CodePen.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.ArrayList; | |
import java.util.Arrays; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.stream.Collector; | |
class ArgMaxCollector<T> { | |
private T max = null; | |
private ArrayList<T> argMax = new ArrayList<T>(); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
echocol() { echo -e "\033[32m*** $@...\033[0m"; } | |
echocol "Attempting to download the JDK installer disk image" | |
attempts=5 | |
while ! curl -H "Cookie: oraclelicense=accept-securebackup-cookie" -C - -#LO http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-macosx-x64.dmg; do | |
if [[ $attempts == 0 ]]; then break; fi | |
echo "[restarting an interruped download]" | |
sleep 1; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
rc="$HOME/.bashrc" | |
jars="$HOME/.labprog-jars" | |
if [ ! -w "$rc" ]; then | |
echo "Attenzione, il file .bashrc non era presente, l'installazione potrebbe fallire" | |
fi | |
if grep -q "### labprog-firma (non cancellare questa riga e le seguenti)" "$rc"; then |
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
[filter "handle-ipynb-output"] | |
clean = "jupyter nbconvert --to notebook --NbConvertApp.from_stdin=True --ClearOutputPreprocessor.enabled=True --NbConvertApp.writer_class=StdoutWriter" | |
smudge = cat |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.