install and auto update vscode for non root linux users
This file contains hidden or 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
; Eval BOT | |
; Programme de suivi des murs d'une pièce | |
AREA |.text|, CODE, READONLY | |
; This register controls the clock gating logic in normal Run mode | |
SYSCTL_PERIPH_GPIOF EQU 0x400FE108 ;; SYSCTL_RCGC2_R (p291 datasheet de lm3s9b92.pdf) | |
; Configure the corresponding pin to be an output | |
; All GPIO pins are inputs by default |
This file contains hidden or 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 agent = request.headers.get('User-Agent') || '' | |
const browser = | |
agent.includes('Firefox/') ? 'firefox' | |
: agent.includes('Edg/') ? 'edge' | |
: agent.includes('Vivaldi/') ? 'vivaldi' | |
: agent.includes('Brave') ? 'brave' | |
: agent.includes('Chrome/') ? 'chrome' | |
: agent.includes('Safari/') ? 'safari' | |
: agent.includes('OPR/') ? 'opera' | |
: 'other'; |
This file contains hidden or 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
ssh [email protected] | |
psql -h sqletud.u-pem.fr username_db | |
pg_dump -h sqletud.u-pem.fr login_db > backup.sql |
This file contains hidden or 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 IMAGES_NUM = 250 | |
let imgSrcs = new Set() | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
function appendImages() { | |
var imgs = document.getElementsByTagName("img") |
This file contains hidden or 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Material+Icons&display=swap'); | |
/* Colors */ | |
:root { | |
--bg-color: #fff; | |
--accent: #f44336 ; | |
--colored: #673ab7; | |
--error: #f44336; | |
--trans: rgba(103, 58, 183, 0.2); | |
} |