Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

Binary file not shown.
Binary file added RETI/massano_francesco/RIP/massano_rip_es_04.pkt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions TPSI/massano_francesco/JS/esercizi_aggiuntivi/es1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function divisione(n) {
try {
if (!isNaN(n)) {
return n/2;
}
else{
return 'errore';
}
} catch (error) {
console.log('errroe')
}
}

console.log(divisione(1));
console.log(divisione('dhfd'));
console.log(divisione(30));
22 changes: 22 additions & 0 deletions TPSI/massano_francesco/JS/esercizi_aggiuntivi/es2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function calcolaEta(utente) {
let data = new Date();
let anno = data.getFullYear();
let mese = data.getMonth() + 1;
let giorno = data.getDate();
let annoUtente = utente.dataDiNascita.getFullYear();
let meseUtente = utente.dataDiNascita.getMonth() + 1;
let giornoUtente = utente.dataDiNascita.getDate();
annoUtente = anno - annoUtente;

}



let utente = {
nome : 'francesco',
cognome : 'massano',
dataDiNascita : new Date('2007-01-04')
};

let eta = calcolaEta(utente);
//console.log(`${utente.nome} ${utente.cognome} ${eta} anni`);
26 changes: 26 additions & 0 deletions TPSI/massano_francesco/JS/esercizi_aggiuntivi/es3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class libro {
constructor(titolo,autore,anno) {
this.titolo = titolo;
this.autore = autore;
this.anno = anno;
}

dettagli(){
console.log(`il libro di ${this.autore} si chiama ${this.titolo} anno ${this.anno}`)
}

comparareAnno(l1,l2){
return l1 > l2 ? l1 : l2
}


}


let l1 = new libro('matrix','james', 2007);
let l2 = new libro('sitema','nig', 2009);

let risultato = l1.comparareAnno(l1,l2);
console.log(risultato);


23 changes: 23 additions & 0 deletions TPSI/massano_francesco/SVELTE/WebApp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
node_modules

# Output
.output
.vercel
.netlify
.wrangler
/.svelte-kit
/build

# OS
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions TPSI/massano_francesco/SVELTE/WebApp/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
38 changes: 38 additions & 0 deletions TPSI/massano_francesco/SVELTE/WebApp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# sv

Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).

## Creating a project

If you're seeing this, you've probably already done this step. Congrats!

```bash
# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
Loading