Skip to content

Instantly share code, notes, and snippets.

View mosser's full-sized avatar
🇨🇦
Working

Sébastien Mosser mosser

🇨🇦
Working
View GitHub Profile
####
## 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")
@mosser
mosser / pom.xml
Last active August 29, 2015 14:15
Description du projet Maven (POM)
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.unice.polytech.ogl</groupId>
<artifactId>islxx</artifactId> <!-- CHANGE ME -->
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>ISLXX :: Nom de l'equipe</name> <!-- CHANGE ME -->
package fr.unice.polytech.ogl.islxx;
import eu.ace_design.island.bot.*;
public class Explorer implements IExplorerRaid {
@Override
public void initialize(String context) {
throw new UnsupportedOperationException("IExplorerRaid::initialize is not yet implemented");
}
trait Timeout {
import scala.concurrent._
import duration._
import ExecutionContext.Implicits.global
def timeout[T](clock: Int)(block: => T): T = {
val future = Future { block }
Await.result(future, clock.milliseconds)
}
@mosser
mosser / gist:2d33302cf09a2b8de188
Created March 1, 2015 18:20
Delivery, Week #09
# Started at :2015-03-01 18:17:10
####
## Handling ELPS [islaa]
####
# Cloning project from remote repository: OK
# Opening project islaa
# Building using Maven [clean package]: OK
## \o/ Delivery OK \o/
# pom.xml/groupId == [fr.unice.polytech.ogl]: OK
@mosser
mosser / gist:b09a685fee004acd14bd
Created March 8, 2015 18:04
OGL Delivery, Week 10
# Started at :2015-03-08 19:01:40
####
## Handling ELPS [islaa]
####
# Cloning project from remote repository:OK
# Opening project islaa
# Building using Maven [clean package]: OK
## \o/ Delivery OK \o/
# pom.xml/groupId == [fr.unice.polytech.ogl]: OK
@mosser
mosser / week11.txt
Created March 15, 2015 18:03
OGL Deliveries, week 11
# Started at :2015-03-15 19:01:00
####
## Handling ELPS [islaa]
####
# Cloning project from remote repository: OK
# Opening project islaa
# Building using Maven [clean package]: OK
## \o/ Delivery OK \o/
@mosser
mosser / week12.txt
Created March 22, 2015 18:07
OGL delivery, week #12
# Started at: 2015-03-22 19:04:34
####
## Handling ELPS [islaa]
####
# Cloning project from remote repository: OK
# Opening project islaa
# Checking out tag [week12]: OK
# Checking existence of Java sources [*.java]: OK
# Checking non-existence of Java classes [*.class]: OK