Skip to content

Instantly share code, notes, and snippets.

View ClementRoyer's full-sized avatar
🚀

Clément Royer ClementRoyer

🚀
View GitHub Profile
@ClementRoyer
ClementRoyer / poc-mpg-auth.js
Created October 9, 2025 20:51
POC MPG sign-in with Ligue1 OAuth
const axios = require('axios');
const crypto = require('crypto');
async function authenticateMPG(email, password) {
const amplitudeId = crypto.randomUUID();
const validate = (status) => status < 400;
// Step 1: Initiate auth with MPG
const formData = new URLSearchParams({ email, password });
const auth = await axios.post(
@ClementRoyer
ClementRoyer / Chat.fragment.xml
Last active July 14, 2025 22:15
Sample of WebSocket connexion from FIORI (sapui5) to SAP using Abap Push Channel and Abap Messaging Channel (APC/AMC)
<core:FragmentDefinition
xmlns:core="sap.ui.core"
xmlns="sap.m">
<VBox width="100%" height="100%"
renderType="Bare">
<!-- Toolbar spacer -->
@cdaven
cdaven / Spacemacs on Windows 10.md
Last active May 14, 2024 08:48
Setting up Spacemacs on Windows 10

Install Emacs First

Download emacs-w64 and extract somewhere, e.g. a tools or apps folder like C:\Users\<user>\tools\emacs.

Select Emacs' Home

Emacs and many other applications store its configuration in the user's "home" folder. Translated directly from the Unix world, that is %UserProfile% (C:\Users\<user>), but Windows prefers %AppData% instead (C:\Users\<user>\AppData\Roaming).

For simplicity's sake, override this by specifying the HOME environment variable explicitly. Emacs and some other applications (e.g. MinGW) lets this override the default.

@by12380
by12380 / amazon-lp-from-leetcode.txt
Last active September 7, 2025 17:46
Amazon LP Questions from LeetCode Interview Experiences
1.https://interviewgenie.com/blog-1/category/Amazon+interviews
2.https://www.youtube.com/channel/UCw0uQHve23oMWgQcTTpgQsQ/playlists
3.https://medium.com/@scarletinked/are-you-the-leader-were-looking-for-interviewing-at-amazon-8301d787815d
Tell me about a situation where you had a conflict with someone on your team. What was it about? What did you do? How did they react? What was the outcome?
Give an example of when you saw a peer struggling and decided to step in and help. What was the situation and what actions did you take? What was the outcome?
Tell me about a time you committed a mistake?
Tell me about a time when your earned your teammate's trust?
@PurpleBooth
PurpleBooth / README-Template.md
Last active December 3, 2025 00:19
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Cylix
Cylix / intra_epitech_api_urls.md
Last active November 3, 2024 16:18
Intranet Epitech API URLs

Intra Epitech: API URLs

L'intra d'Epitech (intra.epitech.eu) possède une API assez vaste mais malheureusement non documentée. J'ai regroupé ici un certains nombres d'urls concernant cette API.

Pour chacun des liens ci-dessous, ne pas oublier le paramètre &format=json
Attention à bien requêter le https et non pas le http.
La ressource n'est pas encore complète