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
@echo off | |
echo Attenzione agli attacchi epilettici usando questo file! | |
echo Discoteca portatile per computer programmata dal vostro caro Pigoz. | |
pause | |
echo Accensione luci per file... | |
echo Distruzione monitor... | |
echo Cambio colore... | |
echo Lag! | |
:loop | |
color c4 |
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 <stdlib.h> | |
using namespace std; | |
/* Programma creato da Steffo, della Royal Games */ | |
int main() { | |
cout << "Questo è il programma di installazione della Royal Games!" << endl; | |
cerr << "Il programma è ancora in Alpha. Non dovresti usarlo!" << endl; | |
cout << "Cosa vuoi fare?" << endl; |
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 <math.h> | |
#include <stdlib.h> | |
using namespace std; | |
int main() { | |
cout << "Questo programma calcola l'errore assoluto e la media di tre dati." << endl; | |
cout << "Inserisci i dati separati da invio." << endl; | |
float A, B, C, M, N, O, X; | |
cout << "Dato 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
#version: 2.11.1 | |
# Single quotes have to be doubled: ' | |
# Translations start here | |
# by: Steffo | |
action=§f{0} §f{1} | |
addedToAccount=§aSono stati aggiunti {0} al tuo account. | |
addedToOthersAccount=§aHai aggiunto {0} all'account di {1}§a. Ora ha {2}. | |
adventure= avventura | |
alertBroke=ha rotto | |
alertFormat=§c{0} §r {1} §c {2} a {3}! |
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 <random> //rand() restituisce un numero da 0 a RAND_MAX | |
#include <time.h> //Prendiamo il seme del numero casuale dall'ora | |
#include <math.h> //Serve per le potenze e per i valori assoluti | |
using namespace std; | |
int main() | |
{ | |
srand(time(0) + 1); //Seleziona un seme per rand() in base all'ora |
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> | |
using namespace std; | |
int main() | |
{ | |
int a, b, c; | |
cout << "Numero A: "; | |
cin >> a; | |
cout << "Numero B: "; |
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 random | |
import math | |
random.seed() | |
sqm = 0 | |
for prova in range(0, 5): | |
inside = 0 | |
for granello in range(0, 1000000): | |
x = random.random() | |
y = random.random() | |
if(x*x + y*y <= 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
#include <iostream> | |
#include <math.h> | |
using namespace std; | |
//Il prof suggeriva di fare input decimale | |
void printBin(int n, int cifre) | |
{ | |
///Scrivi 'cifre' cifre binarie del numero 'n' | |
bool binario[cifre]; //Array con tutte le cifre |
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
from PIL import Image | |
from PIL import ImageFilter | |
import os | |
filelist = list() | |
for root, dirs, files in os.walk("backgrounds"): | |
filelist = files | |
print(filelist) |
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
// P6_0 a P6_3 sono le porte del 7segmenti | |
// PUSH2 è il pulsante | |
#include <math.h> | |
void setup() | |
{ | |
pinMode(P6_0, OUTPUT); | |
pinMode(P6_1, OUTPUT); | |
pinMode(P6_2, OUTPUT); | |
pinMode(P6_3, OUTPUT); |
OlderNewer