Skip to content

Instantly share code, notes, and snippets.

class Decipherer {
public static String decrypt(String message){
int lenghtString = message.length()/2;
String subString = (message.substring(5,5+ lenghtString)).replace("@#?", " ");
String reverse = new StringBuilder(subString).reverse().toString();
return reverse;
}
class Movies {
public static void main(String...args) {
String[] movies = {"Indiana Jones and the Kingdom of the Crystal Skull", "Indiana Jones and the Last Crusade", "Indiana Jones and the Temple of Doom"};
String[][] actors = {
{"Harrison Ford", "Cate Blanchett", "Karen Allen"},
{"Harrison Ford", "Sean Connery", "Denholm Elliott"},
@Fabien-V
Fabien-V / IndianaJones.java
Created May 13, 2019 15:41
JAVA 03 Variables
class IndianaJones {
public static void main(String...args) {
String title = "Indiana Jones and the Last Crusade";
boolean isView = true;
int date = 1989;
float note = (float) 8.2;
@Fabien-V
Fabien-V / CandyCount.java
Created May 13, 2019 08:43
CandyCount 02
class CandyCount {
public static void main(String[] args) {
double money = 12.4;
double price = 1.2;
int candies = 0;
if (money > 0 && price > 0) {
class Senpai {
public static void main(String[] args) {
// afficher Notice me Senpai dans le terminal
System.out.println("Notice me Senpai");
}
}
mysql> SELECT * FROM school;
+----+----------------------------------------------+----------+----------------+
| id | name | capacity | country |
+----+----------------------------------------------+----------+----------------+
| 3 | Castelobruxo | 380 | Brazil |
| 4 | Durmstrang Institute | 570 | Sweden |
| 6 | Hogwarts School of Witchcraft and Wizardry | 450 | United Kingdom |
| 7 | Ilvermorny School of Witchcraft and Wizardry | 300 | USA |
| 8 | Koldovstoretz | 125 | Russia |
+----+----------------------------------------------+----------+----------------+
@Fabien-V
Fabien-V / sql_select.txt
Created April 23, 2019 08:07
SQL - SELECT
mysql> SELECT * FROM wizard WHERE birthday BETWEEN '1975-01-01' AND '1985-01-01';
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+
| id | firstname | lastname | birthday | birth_place | biography | is_muggle |
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+
| 1 | harry | potter | 1980-07-31 | london | | 0 |
| 2 | hermione | granger | 1979-09-19 | | Friend of Harry Potter | 0 |
| 4 | ron | weasley | 1980-03-01 | | Best friend of Harry | 0 |
| 5 | ginny | weasley | 1981-08-11 | | Sister of Ron and girlfriend of Harry | 0 |
| 6 | fred | weasley | 1978-04-01 | | | 0 |
| 7 | george | weasley | 1978-04-01 | |
@Fabien-V
Fabien-V / quest_1_typescript.js
Created March 27, 2019 13:27
Quete Typescript 1
function hello(name:string) {
console.log("Hello " + name);
}
var firstName:string = "bob";
hello(firstName);
hello(firstName + " marley");
function concat(a:string, b:string) {
https://www.noelshack.com/2019-13-3-1553682202-img-2212.jpg
https://www.noelshack.com/2019-13-3-1553682202-img-2213.jpg
https://www.noelshack.com/2019-13-3-1553682202-img-2214.jpg
@Fabien-V
Fabien-V / index.html
Created March 17, 2019 17:43
Patate de forain
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script>
var patate = prompt("Hey mon ami ! Tu aimes ça les patates ?");
if (patate == 'oui'){
var tas = '#';