Skip to content

Instantly share code, notes, and snippets.

View vmalep's full-sized avatar

Pierre van Male vmalep

View GitHub Profile
@vmalep
vmalep / gist:8d768fbc88c9042537986129a4f32682
Created November 1, 2021 21:23
Quest 383 / Pierre van Male
const http = require('http')
const url = require('url')
const port = 8000
const requestHandler = (request, response) => {
console.log(request.url)
const current_url = new URL(request.url, 'http://localhost:8000')
const search_params = current_url.searchParams
const name = search_params.get('name')
const city = search_params.get('city')
vmalep@L390Y:~/Documents/study/WildCodeSchool/quests/planets$ find
.
./fictional
./fictional/coruscant.jpeg
./fictional/arrakis.jpeg
./fictional/cybertron.jpeg
./real
./real/terrestrial
./real/terrestrial/earth.jpeg
./real/terrestrial/neptune.jpeg
@vmalep
vmalep / WCS-Linux1
Last active September 13, 2021 20:49
I find weird to copy/past real content of my Linux install and make it public.
Therefore I am limiting this exercice to executing the 3 commands into my WCS folder...
vmalep@L390Y:~/Documents/study/WildCodeSchool$ cd quests/
vmalep@L390Y:~/Documents/study/WildCodeSchool/quests$ ls
hello-world my-super-website wild-git
vmalep@L390Y:~/Documents/study/WildCodeSchool/quests$ pwd
/home/vmalep/Documents/study/WildCodeSchool/quests