- descrizione del deployment attraverso un subset di TOSCA yaml
- supporta il deployment di docker container e docker volumes
- supporta il deployment di componenti software generici attraverso il TOSCA lifecycle
- permette la connessione delle varie componenti in rete
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 pprint import PrettyPrinter | |
from random import randrange | |
def post_order(t, deep=0): | |
if isinstance(t, dotdict): | |
# is a node | |
yield deep, t.value | |
yield from post_order(t.left, deep+1) | |
yield from post_order(t.right, deep+1) |
pdftk <file-path> cat 1-endleft output <file-path-rotated>
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
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;"> | |
<tr> | |
<td colspan="2" style="padding-bottom: 4px; color: #F7751F; font-size: 16px; font-family: Arial, Helvetica, sans-serif;">Luca Rinaldi</td> | |
</tr> | |
<tr> | |
<td colspan="2" style="color: #333333; font-size: 14px; font-family: Arial, Helvetica, sans-serif;"><i>Computer Science & Networking Student</i></td> | |
</tr> | |
<tr> | |
<td colspan="2" style="color: #333333; font-size: 14px; font-family: Arial, Helvetica, sans-serif;"> | |
<strong>University of Pisa and Scuola Superiore Sant'Anna</strong> |
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
var app = require('express')(); | |
var http = require('http'); | |
app.get('/', function (req, res) { | |
http.get('http://127.0.0.1:8000/person', | |
function (resApi) { | |
res.writeHead(resApi.statusCode); | |
resApi.pipe(res); | |
} | |
).end(); |
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
#!/usr/bin/perl | |
use File::Basename; | |
# STOP WORDS FOLDER | |
my $stp = "/home/andrea/Downloads/DataMining/code/data/"; | |
# STOP WORDS FILE | |
my $stf = "stopwords.txt"; | |
# DATA MAIN PATH | |
my $dp = "/home/andrea/Downloads/DataMining/code/dwld/Gutenberg/dwdl/stripped/"; |
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
# initialization file (not found) |
Change the URL with the professor page and run
URL=http://didawiki.cli.di.unipi.it/doku.php/magistraleinformaticanetworking/cpa/start &&\
wget -O- $URL | \
sed -n 's@.*<a href="\(.*\)" class.*Slides</a>.*@http\:\/\/didawiki.di.unipi.it\/\1@p' | \
wget -c -i -
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 <thread> | |
#include <unistd.h> | |
using namespace std; | |
int main(int argc, char* argv[]){ | |
thread([](){ | |
for(char symbol = 0;;usleep(100000)){ | |
cout << "\r" << (0==++symbol%4?"|": | |
1==symbol%4?"/": |
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 | |
printf "Install all the dependencies..\n" | |
sudo apt-get update | |
sudo apt-get install -y mercurial python3-dev python3-numpy libsdl-dev libsdl-image1.2-dev \ | |
libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev \ | |
libavformat-dev libswscale-dev libjpeg-dev libfreetype6-dev | |
printf "\nDownload pygame source..\n" | |
cd /tmp | |
hg clone https://bitbucket.org/pygame/pygame |