Skip to content

Instantly share code, notes, and snippets.

View mosser's full-sized avatar
🇨🇦
Working

Sébastien Mosser mosser

🇨🇦
Working
View GitHub Profile
azrael:TSE_2013 mosser$ for i in G1 G2 G3 G4; do cd $i; ../clone.sh; cd ..; done
Cloning into 'NP4H'...
remote: Counting objects: 67, done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 67 (delta 37), reused 0 (delta 0)
Unpacking objects: 100% (67/67), done.
Cloning into 'Pamplemousse'...
remote: Counting objects: 231, done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 231 (delta 117), reused 187 (delta 95)
@mosser
mosser / gist:5071029
Created March 2, 2013 13:40
Livraison OGL/AQL en semaine #9
# Start time: 2013-03-01 19:00:01
## Project-Team [NP4H] ##
Cloning project from remote repository: OK
Checking out tag [v0.1]: OK
Checking existence of [.gitignore]: FAILURE
Checking existence of source files [*.java]: OK
Checking non-existence of compiled classes [*.class]: OK
Checking non-existence of temporary files [*~]: OK
Checking existence of [build.xml]: FAILURE
@mosser
mosser / gist:5123861
Created March 9, 2013 11:10
Livraison OGL en S10
# Start time:2013-03-09 12:07:36
## Project-Team [NP4H] ##
Cloning project from remote repository: OK
Checking existence of [.gitignore]: OK
Checking existence of source files [*.java]: OK
Checking non-existence of compiled classes [*.class]: OK
Checking non-existence of temporary files [*~]: OK
Checking existence of [build.xml]: OK
Compiling using ant: FAILURE
@mosser
mosser / gist:5171849
Created March 15, 2013 18:13
Livraisons OGL/AQL, semaine 11
# Start time:2013-03-15 19:00:35
## Project-Team [NP4H] ##
Cloning project from remote repository: OK
Checking out tag [week11]: FAILURE
Checking existence of [.gitignore]: OK
Checking existence of source files [*.java]: OK
Checking non-existence of compiled classes [*.class]: OK
Checking non-existence of temporary files [*~]: OK
Checking non-existence of Eclipse classpath meta-data [.classpath]: OK
@mosser
mosser / gist:5223711
Created March 22, 2013 18:43
Livraison OGL/AQL en Semaine 12.
# Start time:2013-03-22 19:37:29
## Project-Team [NP4H] ##
Cloning project from remote repository: OK
Checking out tag [week12]: OK
Checking existence of [.gitignore]: OK
Checking existence of source files [*.java]: OK
Checking non-existence of compiled classes [*.class]: OK
Checking non-existence of temporary files [*~]: OK
Checking non-existence of Eclipse classpath meta-data [.classpath]: OK
azrael:G4-Non mosser$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ app ---
[INFO] Deleting /Users/mosser/work/tse-forensics/G4-Non/target
[INFO]
@mosser
mosser / voronoi-delaunay
Created June 24, 2014 12:09
Voronoi and delaunay triangulation in Scala using JTS
/**
* Island universe
*/
import eu.ace_design.island.{PointGenerator, RandomGrid, SquaredGrid}
val MAP_SIZE = 800
val generators: Map[String,PointGenerator] = Map(
"RANDOM" -> new RandomGrid(MAP_SIZE),
"SQUARE" -> new SquaredGrid(MAP_SIZE)
)
####
## Island 3d model (OBJ compliant file)
## Automatically generated by the [OBJViewer] transformation process
####
####
## Vertices registry
####
v 0.0 543.940833320065 0.0
{"vertices":[[0,246.42596206402408,0],[13.237969827334558,238.6052237327179,0],[15.09167849584305,226.05186303148696,0],[0,219.8051619040442,0],[6.239963254644136,232.47854493470317,0],[0,172.11601969539822,0],[11.026621087466113,167.7139505528935,0],[12.329162664607903,151.14185019763522,0],[9.986487973831494,149.25422585967576,0],[0,147.24511591965992,0],[5.511248877513007,159.04388649442274,0],[0,67.14580081634828,0],[13.553399612832058,58.991425894693464,0],[8.506402979139084,47.94841826534442,0],[0,45.81343036305573,0],[5.151182793755728,55.887457259594065,0],[16.28786987614692,41.703707281222364,0],[9.81526147408988,32.18928883723294,0],[0,34.74855107174819,0],[6.978188149308051,40.22034785472737,0],[13.969212769444688,25.435164140762936,0],[1.7224575911406683,14.8917240583605,0],[0,14.55411196841258,0],[5.196975355422819,25.57882856396395,0],[14.57068461657617,25.282785217375995,0],[21.868180736003993,14.345622252927487,0],[17.42452257909154,8.375948800971802,0],[12.994312125088511,16.269577899919256,0
@mosser
mosser / ElephantCarpaccio.scala
Created February 13, 2015 15:11
the code that fulfills 100% of the expected value for the Carpaccio exercise,
import scala.io.StdIn
object ElephantCarpaccio extends App {
val nbHats = StdIn.readLine("nbHats>").toInt
println(s"Selling $nbHats items")
val price = StdIn.readLine("price>").toFloat
println(s"Price per item is set to $$$price")