Variabili, array, DOM, eventi, funzioni, programmazione asincrona e async/await.
I quesiti sono pensati per testare sia la comprensione teorica che la capacità pratica, proprio come in una verifica scritta del corso TPSIT.
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
| wget -c \ | |
| --load-cookies cookies.txt \ | |
| --limit-rate=800k \ | |
| --tries=3 \ | |
| --timeout=45 \ | |
| "URL" | |
| This gist explains how to download large files from Twitter/X when authentication is required | |
| and the browser fails due to unstable or low bandwidth connections. |
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 calendar | |
| import locale | |
| from datetime import datetime | |
| from reportlab.lib.pagesizes import A4 | |
| from reportlab.lib.colors import HexColor | |
| from reportlab.pdfgen import canvas | |
| from reportlab.lib.units import cm | |
| # ========================= |
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
| #!/bin/bash | |
| # ===== CONFIGURAZIONE BASE ===== | |
| WP_PATH="/var/www/html" | |
| BACKUP_DIR="$WP_PATH" | |
| TIMESTAMP=$(date +"%Y%m%d_%H%M%S") | |
| BACKUP_NAME="wordpress_backup_$TIMESTAMP" | |
| DUMP_FILE="$BACKUP_DIR/${BACKUP_NAME}.sql" | |
| ARCHIVE_FILE="$BACKUP_DIR/${BACKUP_NAME}.tar.gz" |
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
| stack( | |
| sound("<pink brown>")._scope(), | |
| s("oh*4").speed("<1 0.95 1.1 0.9>/2").gain(0.25).hpf(300).pan(rand), | |
| s("bd sd [~ bd] sd").gain(0.2) | |
| ) |
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
| $: s("triangle*4").decay(0.5).n(irand(100)).scale('C:minor').room(1).roomsize(10) |
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
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <ctime> | |
| #include <cstdlib> | |
| using namespace std; | |
| int main() { | |
| srand(time(0)); |
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
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| #define SIZE_OF_ALPHABET 5 | |
| struct Report { | |
| long long totalPossible = 0; | |
| long long attemptsToMatch = -1; | |
| }; |
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
| # Guida modulare a Strudel | |
| ## Livello 1: First Sounds | |
| Obiettivo: Far suonare qualcosa di semplice e capire la sintassi di base. | |
| ```js | |
| // Carica un crate di sample dal repository GitHub | |
| samples('github:eddyflux/crate') | |
| // Imposta la velocità dei cicli (cps = cycles per second) |
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
| #!/bin/bash | |
| PORT="/dev/cu.usbmodem12301" # <— porta corretta per macOS | |
| BAUD=9600 | |
| stty -f $PORT $BAUD -echo -icanon | |
| echo "Connessione a $PORT aperta (baud: $BAUD)" | |
| echo "Scrivi un carattere e premi Invio (CTRL+C per uscire)" | |
| while true; do | |
| read -p "> " input |
NewerOlder