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
sudo add-apt-repository ppa:dlecan/openjdk | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre # or "openjdk-7-jdk" for JDK. | |
# Add "openjdk-7-source" to install JDK sources. |
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 sbt._ | |
import Keys._ | |
import PlayProject._ | |
object ApplicationBuild extends Build { | |
val appName = "sample" | |
val appVersion = "1.0-SNAPSHOT" | |
// Properties to add configure the new Artifact |
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
Verifying that +dlecan is my blockchain ID. https://onename.com/dlecan |
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
fn calculer_division(x: i32, y: i32) -> i32 { | |
match y { | |
0 => panic!("Division par 0"), | |
1 => x, | |
_ => x / y | |
} | |
} | |
fn main() { | |
let resultat = calculer_division(-4, 2); |
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
use std::env; | |
fn calculer_division(x: i32, y: i32) -> i32 { | |
match y { | |
0 => panic!("Division par 0"), | |
1 => x, | |
_ => x / y | |
} | |
} |
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
use std::env; | |
fn calculer_division(x: i32, y: i32) -> i32 { | |
match y { | |
0 => panic!("Division par 0"), | |
1 => x, | |
_ => x / y | |
} | |
} |
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
use std::env; | |
struct Division { | |
numerateur: i32, | |
denominateur: i32, | |
} | |
impl Division { | |
fn calculer(&self) -> i32 { | |
match self.denominateur { |
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
use std::env; | |
struct Division { | |
numerateur: i32, | |
denominateur: i32, | |
} | |
impl Division { | |
fn new(x: i32, y: i32) -> Division { | |
Division { |
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
use std::env; | |
struct Division { | |
numerateur: i32, | |
denominateur: i32, | |
} | |
impl Division { | |
fn new(x: i32, y: i32) -> Division { | |
Division { |
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
use std::env; | |
struct Division { | |
numerateur: i32, | |
denominateur: i32, | |
} | |
impl Division { | |
fn new(x: i32, y: i32) -> Division { | |
Division { |
OlderNewer