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
/** | |
* Converts an int to a byte[] | |
* @param i Integer to convert | |
* @return byte[] | |
*/ | |
public static byte[] intToByteArray (int i) { | |
ByteBuffer buf = ByteBuffer.allocate(4); | |
buf.order(ByteOrder.LITTLE_ENDIAN); | |
buf.putInt(i); | |
return buf.array(); |
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
/*THIS EXAMPLE CONNECTS TO A SERVER, SENDS A COMMAND AND DISCONNECTS*/ | |
using System; | |
using csmcrc; | |
namespace CsmcrcExample | |
{ | |
class CsmcrcExample | |
{ | |
static void Main(string[] args) | |
{ |
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
<?php | |
//RESTful Player Verification API for 'empirefactions.tk' | |
//AUTHOR: mrBackSlash | |
//player verification section | |
//include config | |
require 'config.php'; | |
//get params from request | |
$playername = $link->real_escape_string($_GET['ign']); |
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
/* | |
AUTORE: Vittorio Lo Mele | |
DATA: 19/11/2020 | |
DESCRIZIONE: Programma per l'apertura automatica dei link delle videolezioni | |
in base all'orario del computer. | |
FORMATO CSV ORARIO PER RIGA: Giorno Settimana,Ora Inizio in secondi,Ora fine in secondi,link | |
ESEMPIO RIGA: LUN,29100,32100,https://example.com | |
*/ | |
#include <iostream> | |
#include <fstream> |
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
#define PULSANTE 2 //pin del pressostato | |
#define POMPAUNO 7 | |
#define POMPADUE 6 | |
bool crun = false; | |
bool controlloauto = true; | |
int latest = 1; | |
void setup() { | |
pinMode(PULSANTE, INPUT); |
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 <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <cstring> | |
using namespace std; | |
//nessun menù, solo funzione di contatore, si presuppone che il menù salvi le righe di testo in un file | |
int main(){ | |
ifstream ifs ("testo.txt", ifstream::in); //apertura file di testo |
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
#File di configurazione, inserisci intervallo in secondi | |
db_address: localhost | |
db_port: 3306 | |
db_user: root | |
db_pass: root | |
db_name: database | |
db_table: meteo | |
read_interval: 30 | |
sensor_endpoint: http://sample.com/ |
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
<?php | |
$enableDebug = false; | |
header('Content-Type: text/plain; charset=utf-8'); | |
function indirizzoIpReale(){ | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])){ | |
$ip=$_SERVER['HTTP_CLIENT_IP']; | |
}elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ | |
$ip=$_SERVER['HTTP_X_FORWARDED_FOR']; | |
}else{ |
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
abaco | |
abbondanza | |
abbondanzia | |
abbondanzio | |
abbondazio | |
abbondia | |
abbondina | |
abbondio | |
abdelkrim | |
abdellah |
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> | |
int main(){ | |
int quantita; | |
printf("Inserisci quantità valori: "); | |
scanf("%d", &quantita); | |
int valori[quantita]; | |
int i = 1; | |
do{ | |
printf("Inserisci valore n%d:", i); |
OlderNewer