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
// 1. File Extension | |
// - Example: The file is named styles.scss | |
// 2. SCSS Syntax Features | |
// - Example: Use of variables, nesting, mixins, and extends in this file. | |
$base-font-size: 16px; | |
body { | |
font-size: $base-font-size; |
%%{init: { 'logLevel': 'debug', 'theme': 'forest' } }%%
timeline
%%title History of Automated JS Testing Frameworks
section Prerequisites
1993: Web
2000-2004: Start of automation with simple test scripts
| Criteria | Comments | WebdriverIO | TheIntern | Nightwatch | TestCafé | Playwright | | -------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------
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
#include <stdio.h> | |
void swapByCopy(int a, int b) { | |
int temp = a; | |
a = b; | |
b = temp; | |
} | |
// Le passage par pointeur pour obtenir un comportement similaire au passage par référence en C++. | |
// Cela implique de passer l'adresse des variables à une fonction et d'utiliser les pointeurs pour accéder et modifier les valeurs des variables d'origine. |
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
#!/bin/bash | |
# This script executes the four Python files sequentially to perform a series of tasks. | |
# Make sure you have Python installed and the necessary dependencies for each Python script. | |
# pip install -r requirements.txt | |
# Step 1: Convert maps to JSON | |
python 01_maps_to_json.py --address_suffix ", Krakow" | |
# Step 2: Convert JSON to GeoJSON |
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
#!/bin/bash | |
# To lock session if needed | |
# loginctl lock-session | |
echo && date | |
echo 'Starting alarm.sh' | |
SOUND_PERCENT=150 | |
SOUND_FREQUENCY=1000 |
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
let obj1, obj2, obj3; | |
/** | |
* spread_synthax | |
*/ | |
//with non redondant values, everyone stay | |
obj1 = { food: 'pizza', car: 'ford' }; | |
obj2 = { animal: 'dog' }; | |
obj3 = { ...obj1, ...obj2 }; | |
console.log(obj3); // => { food: "pizza", car: "ford", animal: "dog" } |
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
// Working in all environments | |
// https://stackoverflow.com/a/39077686 | |
/** | |
* Converting RGB to hex | |
* @param r red | |
* @param g green | |
* @param b blue | |
* @returns Hexacode color | |
* @example rgbToHex(0, 51, 255); // '#0033ff' |
NewerOlder