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 eu.mmacphail.threads; | |
import org.junit.jupiter.api.Test; | |
import java.time.LocalDateTime; | |
import java.util.concurrent.*; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class ThreadingTest { |
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 | |
set -o errexit | |
set -o xtrace | |
set -o nounset | |
FILE=$1 | |
function cleanup { | |
rm temp.txt | |
} |
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 clients; | |
import io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptor; | |
import java.time.Duration; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.Properties; | |
import org.apache.kafka.clients.consumer.ConsumerConfig; | |
import org.apache.kafka.clients.consumer.ConsumerRebalanceListener; |
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 clients; | |
import io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.List; | |
import java.util.Properties; |
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 eu.macphail | |
sealed class PartOfTree | |
data class Leaf(val sprite: String = "Leaf") : PartOfTree() | |
data class Flower(val sprite: String = "Flower") : PartOfTree() | |
data class Branch(val subParts: List<PartOfTree>, | |
val enterBranch: String = "Enter Branch", | |
val exitBranch: String = "Exit Branch") : PartOfTree() | |
data class Painting(val sprites: String = "") { |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
Macro planning | |
Article 1 : présentation générale de clojure, syntaxe, définitions, fonctions simples | |
Article 2 : symboles, keywords, values, datastructure, fonctions et macros built-in (if let do map filter), lamda, la doc et son accessibilité, pas de boucles ;), les valeurs truthy | |
Article 3 : présentation de programmation fonctionnelle dans clojure: la recursion, les lambdas (reduce, loop) | |
Article 4 : polymorphisme, exemples avancées (trees) | |
Article 5 : java interop | |
Article 6 : threading, futures, ref, agents, atoms, STM | |
Article 7 : macros |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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 eu.macphail.guesser | |
import arrow.Kind | |
import arrow.core.* | |
import arrow.effects.* | |
import arrow.extension | |
import eu.macphail.guesser.io.console.console | |
import eu.macphail.guesser.io.program.program | |
import eu.macphail.guesser.io.randomNumberGen.randomNumberGen | |
import kotlin.random.Random |
NewerOlder