Skip to content

Instantly share code, notes, and snippets.

Working from home - #Stay at Home

Pascal JP. Richet PascalR2014

Working from home - #Stay at Home
View GitHub Profile
PascalR2014 / Hiding status and nav bar with java.txt
Created Mar 29, 2017
Second Snippet for hiding status bar and nav bar
View Hiding status and nav bar with java.txt
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.TextView;
PascalR2014 / java.xml
Created Mar 22, 2017
Hiding status bar and nav bar to Android ...
View java.xml
import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
PascalR2014 / Jeu Pierre-Feuile-ciseaux.js
Created Dec 25, 2015
Games in javascript, for correction please !
View Jeu Pierre-Feuile-ciseaux.js
var choixUtilisateur = prompt("Choisissez-vous pierre, feuille, ou ciseaux ?");
var choixOrdi = Math.random();
if (choixOrdi < 0.34) {
choixOrdi = "pierre";
} else if(choixOrdi <= 0.67) {
choixOrdi = "feuille";
} else {
choixOrdi = "ciseaux";
console.log("Ordinateur : " + choixOrdi);