Skip to content

Instantly share code, notes, and snippets.

View Lucchetto's full-sized avatar

Lucchetto

View GitHub Profile
@Lucchetto
Lucchetto / calendario.cpp
Created January 29, 2018 07:38
Es del calendario
#include <iostream>
#include<iomanip>
using namespace std;
int main()
{
int listamesi[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int mese, giorno, tgiorni, colonna;
cout<<"Inserisci il mese:";
#include <iostream>
#include <math.h>
using namespace std;
//Calcolo delle aree, nessun copyright su questo file, non lo voglio//
float quaderettangolo(float base, float altezza) {
float area = 0;
area = base * altezza;
return area;
#include <iostream>
#include <sstream>
#include <string>
#include <math.h>
using namespace std;
void clear_screen() {
cout<<string(100, '\n' );
}
@Lucchetto
Lucchetto / rev1.cpp
Last active April 16, 2018 07:51
Oh Ire !
// Made by n00b Zhenxiang Chen
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
// Determinate the right thickness of symbols
int dynamic_thickness_scaling(int msize) {
int temp = msize / 10;
/*if (fmod(temp, 2.0) != 0.0) {
// My first Arduino program which prints a snake
// Zhenxiang Chen 2018
// Some functions we need
void button_manager(int pin, bool &output) {
if (digitalWrite(pin) == LOW) {
if (output == true) {
output = false;
}
}
#include <iostream>
#include <string>
using namespace std;
struct weapon_stats {
char name[50];
float max_damage;
float min_damage;
float bullet_drop;
@Lucchetto
Lucchetto / gaming.cpp
Last active May 5, 2018 09:47
Light fan driver
int analogPin = 3; // potentiometer wiper (middle terminal) connected to analog pin 3
int val = 0;
int pwmPin = 5;
void setup() {
pinMode(pwmPin, OUTPUT);
}
void loop() {
val = analogRead(analogPin);
#include <iostream>
using namespace std;
void rextend_array(int old[], int msize, int newsize) {
int *ptr_new;
ptr_new = new int[newsize];
for (int p = 0; p < msize; p++) {
ptr_new[p] = old[p];
}
#include <iostream>
#include <string>
using namespace std;
struct contatto {
string nome;
string cognome;
int eta;
};
#EXTM3U
#EXTINF:-1,CCTV 1 HD
http://223.110.241.204:6610/gitv/live1/G_CCTV-1-CQ/G_CCTV-1-CQ
#EXTINF:-1,CCTV-2高清
http://223.110.241.204:6610/gitv/live1/G_CCTV-2-CQ/G_CCTV-2-CQ
#EXTINF:-1,CCTV-3高清
http://223.110.241.204:6610/gitv/live1/G_CCTV-3-CQ/G_CCTV-3-CQ
#EXTINF:-1,CCTV-4高清
http://223.110.241.204:6610/gitv/live1/G_CCTV-4-CQ/G_CCTV-4-CQ
#EXTINF:-1,CCTV-5高清