Skip to content

Instantly share code, notes, and snippets.

View JMLamodiere's full-sized avatar

Jean-Marie Lamodière JMLamodiere

View GitHub Profile
@JMLamodiere
JMLamodiere / scala_vs_php_exists.php
Last active October 25, 2021 17:23
SCALA vs PHP : "exists"
<?php /*
// SCALA :
case class Picture(isMain: Boolean)
case class Pictures(pictures: Seq[Picture]) {
def hasMain: Boolean = pictures.exists(_.isMain)
}
val pictures = Pictures(Seq(Picture(false), Picture(true)))
println(pictures.hasMain)
@JMLamodiere
JMLamodiere / blockchain_id.txt
Created January 8, 2016 20:35
+jmlamodiere blockchain ID proof
Verifying that +jmlamodiere is my blockchain ID. https://onename.com/jmlamodiere