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
const listener = app.listen(0, () => { | |
console.log(`Listening to port ${listener.address().port}`); | |
}); |
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
let name = 'Jean'; | |
if (true) { | |
let name = 'Pierre'; | |
console.log(name); // output : Pierre | |
} | |
console.log(name); // output : Jean |
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
#FROM DAVID WALSH | |
# Delete every Docker containers | |
# Must be run first because images are attached to containers | |
docker rm $(docker ps -a -q) | |
# Delete every Docker image | |
docker rmi $(docker images -q) |
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
// All three js imports can be found in the threejs github repository | |
import '../three/shaders/CopyShader'; | |
import '../three/postprocessing/Effectcomposer'; | |
import '../three/shaders/SSAOShader'; | |
import '../three/postprocessing/RenderPass'; | |
import '../three/postprocessing/ShaderPass'; | |
const { | |
MeshDepthMaterial, | |
Clock, |
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
<VirtualHost *:8080> | |
ServerName localhost | |
ServerAlias truc.127.0.0.1.nip.io | |
ServerAlias truc.*.127.0.0.1.nip.io | |
ServerAlias *.truc.127.0.0.1.nip.io | |
DocumentRoot "${WWW_ROOT}" | |
DirectoryIndex index.php | |
ErrorLog ${LOG_ROOT}/truc-error.log | |
CustomLog ${LOG_ROOT}/truc-access.log combined |
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
/*********************** svg utils ************************/ | |
// | |
// Function to create an optimized svg url | |
// Version: 1.0.6 | |
@function svg-url($svg){ | |
// | |
// Add missing namespace | |
// | |
@if not str-index($svg,xmlns) { | |
$svg: str-replace($svg, '<svg','<svg xmlns="http://www.w3.org/2000/svg"'); |
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
main -> stuff {% id %} | |
stuff -> itaStuff {% id %} | |
| textStuff {% id %} | |
textStuff -> text ita textStuff {% id %} | |
| text {% id %} | |
| null {% id %} | |
itaStuff -> ita text itaStuff {% id %} |
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
# ne marche pas : erg*gregre**gregre* | |
main -> stuff | |
stuff -> delimitedStuff | |
| textStuff | |
textStuff -> text delimited textStuff | |
| text | |
| null |
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
# one liner to easily download something and untar it | |
curl https://nodejs.org/dist/v8.0.0/node-v8.0.0-linux-x64.tar.xz | tar - | |
xvJ --strip-components=1 --overwrite -C /usr/local/ |
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
npm show react-native versions |
OlderNewer