Skip to content

Instantly share code, notes, and snippets.

View bu7ch's full-sized avatar
🎯
Focusing

Rodolphe bu7ch

🎯
Focusing
View GitHub Profile
@bu7ch
bu7ch / manual-uninstall-paragon-ntfs.sh
Created March 13, 2022 14:09 — forked from guycalledseven/manual-uninstall-paragon-ntfs.sh
Manually remove Paragon NTFS v15 leftovers MacOS
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
@bu7ch
bu7ch / 01enonce.md
Created October 29, 2021 10:03 — forked from tomsihap/01enonce.md
TP Symfony
@bu7ch
bu7ch / devcamper_specs.md
Created September 16, 2021 10:46 — forked from bradtraversy/devcamper_specs.md
Specs for Devcamper Udemy course project

DevCamper Backend API Specifications

Create the backend for a bootcamp directory website. The frontend/UI will be created by another team (future course). The html/css template has been created and can be used as a reference for functionality. All of the functionality below needs to be fully implmented in this project.

Bootcamps

  • List all bootcamps in the database
    • Pagination
    • Select specific fields in result
    • Limit number of results
  • Filter by fields
@bu7ch
bu7ch / devine.js
Created November 27, 2019 12:24
correction du jeu devine (Plus ou Moins)
const nbTours = 10;
const aleatoire = Math.round(Math.random() * 100);
console.log('nombre à trouver:', aleatoire);
for (let i = 0; i < nbTours; ++i) {
const joueur = prompt('devinez le nombre');
if (joueur > aleatoire) {
alert('Plus petit');
} else if (joueur < aleatoire) {
@bu7ch
bu7ch / tdd.js
Created November 7, 2019 10:30
CPro#6 Tests_week
// Le JS-recall
const selectElementsStartingWithVowel = function(array) {
const vowels = ['a', 'e', 'i', 'o', 'u'];
function startingWithVowel(word) {
const firstChar = word.charAt(0);
return vowels.indexOf(firstChar) !== -1;
}
return array.filter(startingWithVowel);
};
@bu7ch
bu7ch / server.js
Created October 24, 2019 14:55
la partie metier - Chat Mongo
const mongo = require('mongodb').MongoClient;
const client = require('socket.io').listen(4000).sockets;
// Connect to mongo
mongo.connect('mongodb://127.0.0.1/mongochat', function(err, db){
if(err){
throw err;
}
console.log('MongoDB connected...');
@bu7ch
bu7ch / index.html
Created October 24, 2019 14:50
front pour chat Mongo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<title>MongoChat</title>
<style>
#messages{height:300px;}
async function notifyCustomer() {
const customer = await getCustomer(1);
console.log('Customer: ', customer);
if (customer.isGold) {
const movies = await getTopMovies();
console.log('Top movies: ', movies);
await sendEmail(customer.email, movies);
console.log('Email sent...');
}
}
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,600" rel="stylesheet" type="text/css">
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css">
<title>Pig Game</title>
</head>
<body>
/**********************************************
*** GENERAL
**********************************************/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}