Skip to content

Instantly share code, notes, and snippets.

View eliaperantoni's full-sized avatar

Elia Perantoni eliaperantoni

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title>Home</title>
</head>
<body>
<header>
<div class="logo">Elia Perantoni</div>
<div class="nav">
##- IMPORT
##- DOC
'''
Creare un programma che, dato un numero intero positivo,ne
restituisce l'ultima cifra
'''
##- VARIABILI
<html>
<head>
<title>Figure</title>
<style>
body{
margin: 0
}
div.f{
float: left;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" type="image/png" href="fav.png"/>
<link rel="stylesheet" href="style.css" type="text/css">
<title>Competenze</title>
</head>
<body>
<header>
import com.yubico.client.v2.VerificationResponse;
import com.yubico.client.v2.YubicoClient;
import com.yubico.client.v2.exceptions.YubicoValidationFailure;
import com.yubico.client.v2.exceptions.YubicoVerificationException;
import javax.swing.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.net.Socket;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Base64;
public class CryptoUtils {
@eliaperantoni
eliaperantoni / specchi.cpp
Last active October 14, 2017 06:38
Specchi C++
// TestCPP.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#define MAXN 20000
#define MAXM 20000
@eliaperantoni
eliaperantoni / main.cpp
Created October 25, 2017 21:16
Laser brute force
#include <stdio.h>
#include <assert.h>
#include <vector>
#include <time.h>
#include <cstdlib>
#include <iostream>
using namespace std;
#define MAXM 30
@eliaperantoni
eliaperantoni / laser.cpp
Last active October 26, 2017 16:42
Laser brute force
#include <stdio.h>
#include <assert.h>
#include <vector>
#include <time.h>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;