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 tsp.pacman; | |
import java.lang.Math; | |
class Position { | |
int row, col; | |
public Position(int row, int col) { | |
this.row = row; |
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.function.Function; | |
// 1 | |
interface F {int call(); } | |
class Q1 { | |
public static void main(String[] args) { | |
F a = () -> {return 42;}; | |
System.out.println(a instanceof F); |
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 tsp.ast; | |
class Add extends Operation { | |
Add(Node left, Node right) { | |
super(left, right); | |
} | |
@Override | |
public int execute() { |
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/sh | |
# setup.sh | |
MAX=1 | |
PREFIX=semaphore_counter_ | |
for r in cabine panier; | |
do | |
for i in $(seq 1 1 ${MAX}) | |
do |
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
class Monster { | |
String name; | |
int health; | |
public static void main(String args[]) { | |
Monster aMonster; | |
for (int i=0; i<8; i++) { | |
aMonster = Pokedex.createMonster("Pikachu"+i, 0); | |
Pokedex.displayMonster(aMonster); | |
} |
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
class Monster { | |
String name; | |
int health; | |
public static void main(String args[]) { | |
Monster aMonster; | |
for (int i=0; i<8; i++) { | |
aMonster = Pokedex.createMonster("Pikachu"+i, 0); | |
Pokedex.displayMonster(aMonster); | |
} |
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 | |
if [ -f arene.txt ]; | |
then | |
while read pid; | |
do | |
kill -USR1 $pid | |
done < arene.txt | |
rm arene.txt | |
else |
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 | |
trap 'echo $$: Morituri te salutant; exit 0' USR1 | |
trap ./cesar.sh INT TERM | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 N" | |
exit 1 | |
fi |
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
# Cassandra storage config YAML | |
# NOTE: | |
# See https://cassandra.apache.org/doc/latest/configuration/ for | |
# full explanations of configuration directives | |
# /NOTE | |
# The name of the cluster. This is mainly used to prevent machines in | |
# one logical cluster from joining another. |
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
https://db2cdn.fra1.cdn.digitaloceanspaces.com/assets/document/103_Carte_lieu_final.jpg | |
Dolines de Limère State Park |
NewerOlder