Skip to content

Instantly share code, notes, and snippets.

View romaincoeur's full-sized avatar
🎯
Focusing

Romain Coeur romaincoeur

🎯
Focusing
View GitHub Profile
@romaincoeur
romaincoeur / index.pug
Created January 17, 2021 17:55
Rubik's cube in Javascript
- var faces = ['left', 'right', 'top', 'bottom', 'back', 'front'], pieces = 56 // n^3 - (n-2)^3
#scene.scene
#pivot.pivot.centered(style = 'transform: rotateX(-35deg) rotateY(-135deg);')
#cube.cube
while pieces--
.piece
each face in faces
div(class = 'element ' + face)
.credits
.text(style = 'position: initial') Wanna make solver, but I'm too lazy to translate 100 lines of my Cpp's solver to JS...
#!/bin/bash
if [ -z $1 ]
then
echo "bonjour $USER"
else
echo "bonjour $1"
fi
Debut alorithme AGE
Demander age
naissance = annéeEnCours - age
Afficher naissance
Fin algorithme AGE
Lire age
Retourner AnnéeEnCours-Age
<?php
/**
* Created by PhpStorm.
* User: romain
* Date: 22/02/16
* Time: 10:13
*/
$students = [
"Emmanuel" => 42,
1004 cd clmystery/
1005 ls
1006 cat instructions
1007 clear
1008 cat instructions
1009 ls
1010 gedit instructions &
1011 ls
1012 cd mystery/
1013 ls
contenu 1