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 http = require('http'); | |
const pronote = require('pronote-api'); | |
const app = http.createServer(function (request, response) { | |
console.log('----- RECEIVED A REQUEST -----'); | |
var body = ""; | |
var isBodyGenerated = false; | |
var isResponseEnded = false; |
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
package fr.clementgre; | |
public class Main { | |
public static void main(String[] args) { | |
MutablePerson friend = new MutablePerson(null, "Friend man", 20); | |
MutablePerson person = new MutablePerson(friend, "Person test", 19); | |
editMutablePerson(person); | |
System.out.println(person); |
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
// Utils | |
function getWindowSpace(window){ | |
return Space.all().find(s => s.windows().find(w => w.isEqual(window))) | |
} | |
function getSpaceFromHash(hash){ | |
return Space.all().find(s => s.hash() === hash) | |
} | |
// Default space definition | |
Event.on('windowDidOpen', (window) => { |
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Units Latexizer by Clément Grennerat % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Actions: | |
% "deg" is replaced by °C | |
% Letters [A-Za-z] are put into textrm{} | |
% Numbers and minus are superscripted | |
% Dots are replaced by \cdot | |
\ExplSyntaxOn |
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 fs = require('fs'); | |
const path = require('path'); | |
const axios = require("axios"); | |
const https = require("https"); | |
const httpsAgent = new https.Agent({rejectUnauthorized: false}); | |
const capaignId = 'clvwo2kc40001ncj8jgsroyoz' | |
const get_buildings_query = `query getAvailableEntries($buildingId: ID, $floorId: ID, $roomId: ID, $campaignId: ID!, $bedsCount: Int!) { | |
getAvailableEntries( |