1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-29 03:14:19 +00:00

Update and refresh a few things

This commit is contained in:
Steffo 2020-11-14 22:05:06 +01:00
parent e9e292374e
commit 8f1f03adee
10 changed files with 141 additions and 208 deletions

108
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "appuntiweb", "name": "appuntiweb",
"version": "0.9.0", "version": "0.10.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@ -1206,9 +1206,9 @@
} }
}, },
"@fortawesome/react-fontawesome": { "@fortawesome/react-fontawesome": {
"version": "0.1.11", "version": "0.1.12",
"resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.11.tgz", "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.12.tgz",
"integrity": "sha512-sClfojasRifQKI0OPqTy8Ln8iIhnxR/Pv/hukBhWnBz9kQRmqi6JSH3nghlhAY7SUeIIM7B5/D2G8WjX0iepVg==", "integrity": "sha512-kV6HtqotM3K4YIXlTVvomuIi6QgGCvYm++ImyEx2wwgmSppZ6kbbA29ASwjAUBD63j2OFU0yoxeXpZkjrrX0qQ==",
"requires": { "requires": {
"prop-types": "^15.7.2" "prop-types": "^15.7.2"
} }
@ -1358,13 +1358,13 @@
} }
}, },
"@sentry/browser": { "@sentry/browser": {
"version": "5.26.0", "version": "5.27.4",
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-5.26.0.tgz", "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-5.27.4.tgz",
"integrity": "sha512-52kNVpy10Zd3gJRGFkhnOQvr80WJg7+XBqjMOE0//Akh4PfvEK3IqmAjVqysz6aHdruwTTivKF4ZoAxL/pA7Rg==", "integrity": "sha512-L8Fsnkl3PIak4zJ1pcGDmV92XTQjS2/H6EBgp1rhuOF4OE3L59K8RR73C9w+wVtsIi7nyfYg/FIe8lvG++3Mow==",
"requires": { "requires": {
"@sentry/core": "5.26.0", "@sentry/core": "5.27.4",
"@sentry/types": "5.26.0", "@sentry/types": "5.27.4",
"@sentry/utils": "5.26.0", "@sentry/utils": "5.27.4",
"tslib": "^1.9.3" "tslib": "^1.9.3"
} }
}, },
@ -1382,59 +1382,59 @@
} }
}, },
"@sentry/core": { "@sentry/core": {
"version": "5.26.0", "version": "5.27.4",
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.26.0.tgz", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.27.4.tgz",
"integrity": "sha512-Ubrw7K52orTVsaxpz8Su40FPXugKipoQC+zPrXcH+JIMB+o18kutF81Ae4WzuUqLfP7YB91eAlRrP608zw0EXA==", "integrity": "sha512-IbI37cIZU/qBQouuUXaLbGF/9xYFp5STqmj1Gv64l0IZe4JnEp06V3yD5GxQ/mJ78vSfOqfwLooVCUw9FA61sQ==",
"requires": { "requires": {
"@sentry/hub": "5.26.0", "@sentry/hub": "5.27.4",
"@sentry/minimal": "5.26.0", "@sentry/minimal": "5.27.4",
"@sentry/types": "5.26.0", "@sentry/types": "5.27.4",
"@sentry/utils": "5.26.0", "@sentry/utils": "5.27.4",
"tslib": "^1.9.3" "tslib": "^1.9.3"
} }
}, },
"@sentry/hub": { "@sentry/hub": {
"version": "5.26.0", "version": "5.27.4",
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.26.0.tgz", "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.27.4.tgz",
"integrity": "sha512-lAYeWvvhGYS6eQ5d0VEojw0juxGc3v4aAu8VLvMKWcZ1jXD13Bhc46u9Nvf4qAY6BAQsJDQcpEZLpzJu1bk1Qw==", "integrity": "sha512-Ba1AqcjvSd2S+fpdXtXCrVXdrzq9E2Etb2eHUOkEYwSsq7StMOw7E8YHDPAo+to8zUbpMPz/Z9XGhFkyAbImGQ==",
"requires": { "requires": {
"@sentry/types": "5.26.0", "@sentry/types": "5.27.4",
"@sentry/utils": "5.26.0", "@sentry/utils": "5.27.4",
"tslib": "^1.9.3" "tslib": "^1.9.3"
} }
}, },
"@sentry/integrations": { "@sentry/integrations": {
"version": "5.26.0", "version": "5.27.4",
"resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-5.26.0.tgz", "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-5.27.4.tgz",
"integrity": "sha512-XBMPm3wWW+3EJvWFHdVcl0PSWjjNEzmQxjjWeMv9vLWAC1zhS8gcpk/LyDIFWojJBzhASD8f1mLv2ZdKZtA1ZQ==", "integrity": "sha512-/2KRNrpbRDatNfurKzhpeYa5YQCYSXgR2JbPGQzg8d3fKggSTDLiVxrc+LC7oHeHgv6LWOzkVVzfmB01LJRZTA==",
"requires": { "requires": {
"@sentry/types": "5.26.0", "@sentry/types": "5.27.4",
"@sentry/utils": "5.26.0", "@sentry/utils": "5.27.4",
"localforage": "1.8.1", "localforage": "1.8.1",
"tslib": "^1.9.3" "tslib": "^1.9.3"
} }
}, },
"@sentry/minimal": { "@sentry/minimal": {
"version": "5.26.0", "version": "5.27.4",
"resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.26.0.tgz", "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.27.4.tgz",
"integrity": "sha512-mdFo3FYaI1W3KEd8EHATYx8mDOZIxeoUhcBLlH7Iej6rKvdM7p8GoECrmHPU1l6sCCPtBuz66QT5YeXc7WILsA==", "integrity": "sha512-biw5YfIQwvDoaRhLarfeRQ6MJ9UJOoDTmu8Kgg18prJy4rtfDowNJP0OBs5XAsTk6SWAXiE3g7vqUJBXgs7BWA==",
"requires": { "requires": {
"@sentry/hub": "5.26.0", "@sentry/hub": "5.27.4",
"@sentry/types": "5.26.0", "@sentry/types": "5.27.4",
"tslib": "^1.9.3" "tslib": "^1.9.3"
} }
}, },
"@sentry/types": { "@sentry/types": {
"version": "5.26.0", "version": "5.27.4",
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.26.0.tgz", "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.27.4.tgz",
"integrity": "sha512-ugpa1ePOhK55pjsyutAsa2tiJVQEyGYCaOXzaheg/3+EvhMdoW+owiZ8wupfvPhtZFIU3+FPOVz0d5k9K5d1rw==" "integrity": "sha512-41h3c7tgtSS8UBmfvEckSr+7V7/IVOjt/EiydyOd6s0N18zSFfGY5HdA6g+eFtIJK3DhWkUHCHZNanD5IY5YCQ=="
}, },
"@sentry/utils": { "@sentry/utils": {
"version": "5.26.0", "version": "5.27.4",
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.26.0.tgz", "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.27.4.tgz",
"integrity": "sha512-F2gnHIAWbjiowcAgxz3VpKxY/NQ39NTujEd/NPnRTWlRynLFg3bAV+UvZFXljhYJeN3b/zRlScNDcpCWTrtZGw==", "integrity": "sha512-shV1I/q+Tob3hUxRj11DfMhe9PNDiv85hUUoRloZGGwu275dMwpswb2uwgSmjc2Ao4pnMKVx8TL1hC3kGLVHTQ==",
"requires": { "requires": {
"@sentry/types": "5.26.0", "@sentry/types": "5.27.4",
"tslib": "^1.9.3" "tslib": "^1.9.3"
} }
}, },
@ -2989,9 +2989,9 @@
"integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==" "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg=="
}, },
"chart.js": { "chart.js": {
"version": "2.9.3", "version": "2.9.4",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-2.9.3.tgz", "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-2.9.4.tgz",
"integrity": "sha512-+2jlOobSk52c1VU6fzkh3UwqHMdSlgH1xFv9FKMqHiNCpXsGPQa/+81AFa+i3jZ253Mq9aAycPwDjnn1XbRNNw==", "integrity": "sha512-B07aAzxcrikjAPyV+01j7BmOpxtQETxTSlQ26BEYJ+3iUkbNKaOJ/nDbT6JjyqYxseM0ON12COHYdU2cTIjC7A==",
"requires": { "requires": {
"chartjs-color": "^2.1.0", "chartjs-color": "^2.1.0",
"moment": "^2.10.2" "moment": "^2.10.2"
@ -7628,9 +7628,9 @@
} }
}, },
"moment": { "moment": {
"version": "2.27.0", "version": "2.29.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.27.0.tgz", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz",
"integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==" "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ=="
}, },
"move-concurrently": { "move-concurrently": {
"version": "1.0.1", "version": "1.0.1",
@ -9128,9 +9128,9 @@
"integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==" "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ=="
}, },
"preact": { "preact": {
"version": "10.5.4", "version": "10.5.7",
"resolved": "https://registry.npmjs.org/preact/-/preact-10.5.4.tgz", "resolved": "https://registry.npmjs.org/preact/-/preact-10.5.7.tgz",
"integrity": "sha512-u0LnVtL9WWF61RLzIbEsVFOdsahoTQkQqeRwyf4eWuLMFrxTH/C47tqcnizbUH54E4KG8UzuuZaMc9KarHmpqQ==" "integrity": "sha512-4oEpz75t/0UNcwmcsjk+BIcDdk68oao+7kxcpc1hQPNs2Oo3ZL9xFz8UBf350mxk/VEdD41L5b4l2dE3Ug3RYg=="
}, },
"preact-cli": { "preact-cli": {
"version": "3.0.3", "version": "3.0.3",
@ -9290,9 +9290,9 @@
} }
}, },
"preact-render-to-string": { "preact-render-to-string": {
"version": "5.1.10", "version": "5.1.12",
"resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-5.1.10.tgz", "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-5.1.12.tgz",
"integrity": "sha512-40svy7NDe5Qe0ymdsIC11f0hZb05MeTSUqqIaWJ5DEFCh/sF86KcpRW0kN/ymGYDVVUCfv9qFrVuLCXR7aQxgQ==", "integrity": "sha512-nXVCOpvepSk9AfPwqS08rf9NDOCs8eeYYlG+7tE85iP5jVyjz+aYb1BYaP5SPdfVWVrzI9L5NzxozUvKaD96tA==",
"requires": { "requires": {
"pretty-format": "^3.8.0" "pretty-format": "^3.8.0"
} }
@ -9733,9 +9733,9 @@
} }
}, },
"react-chartjs-2": { "react-chartjs-2": {
"version": "2.10.0", "version": "2.11.1",
"resolved": "https://registry.npmjs.org/react-chartjs-2/-/react-chartjs-2-2.10.0.tgz", "resolved": "https://registry.npmjs.org/react-chartjs-2/-/react-chartjs-2-2.11.1.tgz",
"integrity": "sha512-1MjWEkUn8LLFf6GVyYUOrruJTW3yVU5hlEJOwGj3MiokuC+jH/BahjWVGAMonbe9UYbEIUbd2Rn36iVlC0Hb7w==", "integrity": "sha512-G7cNq/n2Bkh/v4vcI+GKx7Q1xwZexKYhOSj2HmrFXlvNeaURWXun6KlOUpEQwi1cv9Tgs4H3kGywDWMrX2kxfA==",
"requires": { "requires": {
"lodash": "^4.17.19", "lodash": "^4.17.19",
"prop-types": "^15.7.2" "prop-types": "^15.7.2"

View file

@ -28,22 +28,22 @@
"@fortawesome/free-brands-svg-icons": "^5.15.1", "@fortawesome/free-brands-svg-icons": "^5.15.1",
"@fortawesome/free-regular-svg-icons": "^5.15.1", "@fortawesome/free-regular-svg-icons": "^5.15.1",
"@fortawesome/free-solid-svg-icons": "^5.15.1", "@fortawesome/free-solid-svg-icons": "^5.15.1",
"@fortawesome/react-fontawesome": "^0.1.11", "@fortawesome/react-fontawesome": "^0.1.12",
"@sentry/browser": "^5.26.0", "@sentry/browser": "^5.27.4",
"@sentry/integrations": "^5.26.0", "@sentry/integrations": "^5.27.4",
"bluelib": "0.16.1", "bluelib": "0.16.1",
"chart.js": "^2.9.3", "chart.js": "^2.9.4",
"css-loader": "^3.6.0", "css-loader": "^3.6.0",
"file-loader": "^5.1.0", "file-loader": "^5.1.0",
"history": "^4.10.1", "history": "^4.10.1",
"less": "^3.12.2", "less": "^3.12.2",
"less-loader": "^5.0.0", "less-loader": "^5.0.0",
"path-browserify": "^1.0.1", "path-browserify": "^1.0.1",
"preact": "^10.5.4", "preact": "^10.5.7",
"preact-render-to-string": "^5.1.10", "preact-render-to-string": "^5.1.12",
"preact-router": "^3.2.1", "preact-router": "^3.2.1",
"process": "^0.11.10", "process": "^0.11.10",
"react-chartjs-2": "^2.10.0", "react-chartjs-2": "^2.11.1",
"react-markdown": "^4.3.1", "react-markdown": "^4.3.1",
"react-simplemde-editor": "^4.1.0", "react-simplemde-editor": "^4.1.0",
"style-loader": "^1.3.0" "style-loader": "^1.3.0"

View file

@ -42,6 +42,7 @@ const icons = Object.freeze({
"youtu.be": faYoutube, "youtu.be": faYoutube,
"t.me": faTelegram, "t.me": faTelegram,
"thor.steffo.eu": faTelegram,
"steampowered.com": faSteam, "steampowered.com": faSteam,
"steamcommunity.com": faSteam, "steamcommunity.com": faSteam,

View file

@ -0,0 +1,12 @@
import {BoxColors, Panel} from "bluelib";
export default function (props) {
return (
<Panel title={"To be continued"} color={BoxColors.YELLOW}>
<p>
Questa sezione è incompleta. Torna più avanti!
</p>
{props.children}
</Panel>
)
}

View file

@ -47,6 +47,7 @@ import OliGMPL from "./routes/OttimizzazioneLineare/GMPL";
import PrintBox from "./components/PrintBox"; import PrintBox from "./components/PrintBox";
import LinguaggiDinamici from "./routes/LinguaggiDinamici"; import LinguaggiDinamici from "./routes/LinguaggiDinamici";
import ProtocolliDiRete from "./routes/ProtocolliDiRete"; import ProtocolliDiRete from "./routes/ProtocolliDiRete";
import GestioneDellInformazione from "./routes/GestioneDellInformazione";
// noinspection JSUnusedGlobalSymbols // noinspection JSUnusedGlobalSymbols
export default function (props) { export default function (props) {
@ -84,6 +85,7 @@ export default function (props) {
<AlgoritmiEStruttureDati path="/algoritmiestrutturedati"/> <AlgoritmiEStruttureDati path="/algoritmiestrutturedati"/>
<LinguaggiDinamici path={"/linguaggidinamici"}/> <LinguaggiDinamici path={"/linguaggidinamici"}/>
<ProtocolliDiRete path={"/protocollidirete"}/> <ProtocolliDiRete path={"/protocollidirete"}/>
<GestioneDellInformazione path={"/gestionedellinformazione"}/>
<Panel default color={BoxColors.RED} title={"Errore"}>Pagina non trovata.</Panel> <Panel default color={BoxColors.RED} title={"Errore"}>Pagina non trovata.</Panel>
</Router> </Router>
</BasicContainer> </BasicContainer>

View file

@ -0,0 +1,33 @@
import {Fragment} from "preact";
import {Section, Panel, ILatex, BLatex, PLatex, BaseLink, Code} from "bluelib";
import Link from "../../components/Link";
const r = String.raw;
export default function () {
return (
<Fragment>
<Section title={"Esame"}>
<Panel title={"Contatti"}>
<ul>
<li><Link href={"mailto:federica.mandreoli@unimore.it"}>Prof. Federica Mandreoli</Link></li>
</ul>
</Panel>
<Panel title={"Collegamenti"}>
<ul>
<li><Link href={"https://dolly.fim.unimore.it/2020/course/view.php?id=69"}>Pagina Dolly Unimore</Link></li>
</ul>
</Panel>
<Panel title={"Download videolezioni"}>
<p>
Puoi scaricare le videolezioni di Gestione dell'informazione con <Link href={"https://github.com/Steffo99/bbbdl"}>bbbdl</Link>:
</p>
<Code language={"bash"}>
bbbdl sync -r https://raw.githubusercontent.com/Steffo99/unimoreinfo-wiki/main/gestionedellinformazione.json
</Code>
</Panel>
</Section>
</Fragment>
)
}

View file

@ -0,0 +1,11 @@
import Intro from "./00_Intro";
export default function () {
return (
<div>
<h1>Gestione dell'informazione</h1>
<Intro/>
</div>
)
}

View file

@ -25,7 +25,7 @@ export default function (props) {
</Panel> </Panel>
<Panel title={"Secondo semestre"}> <Panel title={"Secondo semestre"}>
<MenuList> <MenuList>
<li><Link href={"https://github.com/Steffo99/appunti-universitari/tree/master/2018_ArchitetturaDeiCalcolatori"}>Architettura dei Calcolatori</Link></li> <li><Link href={"https://github.com/Steffo99/appunti-universitari/tree/master/2018_ArchitetturaDeiCalcolatori"}>Architettura dei calcolatori</Link></li>
<li><BaseLink href={"/algoritmiestrutturedati"}>Algoritmi e strutture dati</BaseLink></li> <li><BaseLink href={"/algoritmiestrutturedati"}>Algoritmi e strutture dati</BaseLink></li>
</MenuList> </MenuList>
</Panel> </Panel>
@ -35,16 +35,16 @@ export default function (props) {
<MenuList> <MenuList>
<li><BaseLink href={"/fisica"}>Fisica</BaseLink></li> <li><BaseLink href={"/fisica"}>Fisica</BaseLink></li>
<li><Link href={"https://github.com/Steffo99/cleaver"}>Programmazione a oggetti</Link></li> <li><Link href={"https://github.com/Steffo99/cleaver"}>Programmazione a oggetti</Link></li>
<li><Link href={"https://github.com/Steffo99/appunti-universitari/tree/master/2019_SistemiOperativi/Arzigogoli"}>Sistemi Operativi</Link></li> <li><Link href={"https://github.com/Steffo99/appunti-universitari/tree/master/2019_SistemiOperativi/Arzigogoli"}>Sistemi operativi</Link></li>
<li><BaseLink href={"/statistica"}>Statistica ed elementi di probabilità</BaseLink></li> <li><BaseLink href={"/statistica"}>Statistica ed elementi di probabilità</BaseLink></li>
</MenuList> </MenuList>
</Panel> </Panel>
<Panel title={"Quarto semestre"}> <Panel title={"Quarto semestre"}>
<MenuList> <MenuList>
<li><BaseLink href={"/apprendimento"}>Apprendim. ed evol. in sist. artificiali</BaseLink></li> <li><BaseLink href={"/apprendimento"}>Apprendim. ed evol. in sist. artificiali</BaseLink></li>
<li><BaseLink href={"/basididati"}>Basi di Dati</BaseLink></li> <li><BaseLink href={"/basididati"}>Basi di dati</BaseLink></li>
<li><BaseLink href={"/calcolonumerico"}>Calcolo Numerico</BaseLink></li> <li><BaseLink href={"/calcolonumerico"}>Calcolo numerico</BaseLink></li>
<li><BaseLink href={"/ottimizzazionelineare"}>Ottimizzazione Lineare Intera</BaseLink></li> <li><BaseLink href={"/ottimizzazionelineare"}>Ottimizzazione lineare intera</BaseLink></li>
</MenuList> </MenuList>
</Panel> </Panel>
</Section> </Section>
@ -53,6 +53,7 @@ export default function (props) {
<MenuList> <MenuList>
<li><BaseLink href={"/linguaggidinamici"}>Linguaggi dinamici</BaseLink></li> <li><BaseLink href={"/linguaggidinamici"}>Linguaggi dinamici</BaseLink></li>
<li><BaseLink href={"/protocollidirete"}>Protocolli e architett. di rete</BaseLink></li> <li><BaseLink href={"/protocollidirete"}>Protocolli e architett. di rete</BaseLink></li>
<li><BaseLink href={"/gestionedellinformazione"}>Gestione dell'informazione</BaseLink></li>
</MenuList> </MenuList>
</Panel> </Panel>
<Panel title={"Ultimo semestre"}> <Panel title={"Ultimo semestre"}>
@ -72,7 +73,7 @@ export default function (props) {
<MenuList> <MenuList>
<li><Link href={"https://erre2.fermitech.info/dashboard"}>Erre2</Link></li> <li><Link href={"https://erre2.fermitech.info/dashboard"}>Erre2</Link></li>
<li><small>Tag GitHub: </small><Link href={"https://github.com/topics/unimore-informatica"}>unimore-informatica</Link></li> <li><small>Tag GitHub: </small><Link href={"https://github.com/topics/unimore-informatica"}>unimore-informatica</Link></li>
<li><small>Network Telegram: </small><Link href={"https://t.me/unimoreinfo"}>Unimore Informatica</Link></li> <li><small>Network Telegram: </small><Link href={"https://thor.steffo.eu"}>Unimore Informatica</Link></li>
<li><small>Solo studenti Unimore: </small><Link href={"https://drive.google.com/drive/folders/1gqY-QIe4UeOSHpcho0R-Nvh2IRAlTFmf"}>Archivio Lezioni</Link></li> <li><small>Solo studenti Unimore: </small><Link href={"https://drive.google.com/drive/folders/1gqY-QIe4UeOSHpcho0R-Nvh2IRAlTFmf"}>Archivio Lezioni</Link></li>
</MenuList> </MenuList>
</Panel> </Panel>

View file

@ -1,6 +1,7 @@
import {Fragment} from "preact"; import {Fragment} from "preact";
import {Section, Panel, ILatex, BLatex, PLatex, CodeDefaultLanguage, Code} from "bluelib"; import {Section, Panel, ILatex, BLatex, PLatex, CodeDefaultLanguage, Code, BoxColors} from "bluelib";
import Link from "../../components/Link"; import Link from "../../components/Link";
import ToBeContinued from "../../components/ToBeContinued";
const r = String.raw; const r = String.raw;
@ -9,145 +10,17 @@ export default function () {
return ( return (
<CodeDefaultLanguage.Provider value={"python"}> <CodeDefaultLanguage.Provider value={"python"}>
<Fragment> <Section title={"Python"}>
<h1>Python</h1> <Panel title={"Mordere il pitone"} color={BoxColors.BLUE}>
<Section title={"Tipi immutabili"}> <p>
<Panel title={"int"}> Su questo sito non sono presenti i concetti base di Python e della programmazione.
<p> </p>
Gli <code>int</code> rappresentano numeri interi: <p>
</p> Se ne avete bisogno, potete leggervi <a href={"https://python.swaroopch.com/"}>A Byte of Python</a>, un ottimo libro gratuito e veloce a riguardo :)
<Code>{r` </p>
42 </Panel>
`}</Code> <ToBeContinued/>
<p> </Section>
Non hanno nessun limite di dimensione:
</p>
<Code>{r`
1000000000
`}</Code>
<p>
Per maggiore chiarezza, si possono usare liberamente underscore per formattarli:
</p>
<Code>{r`
1_000_000_000
`}</Code>
</Panel>
<Panel title={"float"}>
<p>
I <code>float</code> rappresentano numeri reali:
</p>
<Code>{r`
42.0
`}</Code>
<p>
Sono limitati alla doppia precisione di macchina:
</p>
<Code>{r`
13.999999999999999 # Diventa 13.999999999999998
`}</Code>
<p>
Per maggiore chiarezza, si possono scrivere in notazione scientifica:
</p>
<Code>{r`
4.2e1
`}</Code>
</Panel>
</Section>
<Section>
<Panel title={"str"}>
<p>
Le <code>str</code> rappresentano del testo Unicode.
</p>
<p>
Il testo va racchiuso tra uno dei due tipi di virgolette:
</p>
<Code>{r`
"Ciaone!"
'Ciaone!'
`}</Code>
<p>
Se nel testo compare lo stesso tipo di virgoletta usato come delimitatore, va prefisso un backslash ad ogni ricorrenza:
</p>
<Code>{r`
"Ciaone dall'Italia!"
'Ciaone dall\'Italia!'
`}</Code>
<p>
Il testo può contenere qualsiasi carattere Unicode:
</p>
<Code>{r`
"bel memë amicø 🔥"
`}</Code>
<p>
È possibile creare testi che continuino su più linee inserendo il delimitatore tre volte:
</p>
<Code>{r`
"""
questa
stringa
è su più
righe
"""
`}</Code>
</Panel>
<Panel title={"bytes"}>
<p>
I <code>bytes</code> rappresentano delle sequenze di bytes (rappresentate in ASCII).
</p>
<p>
I valori vanno racchiusi tra virgolette, più una <code>b</code> all'inizio:
</p>
<Code>{r`
b"Ciaone!"
b'Ciaone!'
`}</Code>
<p>
È possibile inserire valori che non corrispondono ad un carattere con <code>{r`\xXX`}</code>, dove XX è il valore dei due byte.
</p>
<Code>{r`
b"\x00\x01\x02\x03\x04"
b'\x63\x69\x61\x6f\x6e\x65'
`}</Code>
<p>
Possono rappresentare un particolare encoding (UTF-8) di una <code>str</code>:
</p>
<Code>{r`
b"bel mem\xc3\xab amic\xc3\xb8 \xf0\x9f\x94\xa5"
`}</Code>
<p>
Possono continuare su più linee inserendo le virgolette tre volte <i>(ma non fatelo, per piacere)</i>.
</p>
<Code>{r`
b"""
questi
bytes
sono su più
righe
"""
`}</Code>
</Panel>
</Section>
<Section>
<Panel title={"Tuple"}>
<p>
Insiemi di zero, uno, o qualsiasi numero di valori:
</p>
<Code>{r`
()
(1,)
(1, 2, 3, 5)
`}</Code>
<p>
Possono non essere omogenei:
</p>
<Code>{r`
(1, 2.0, "tre", b"cinque")
`}</Code>
</Panel>
</Section>
</Fragment>
</CodeDefaultLanguage.Provider> </CodeDefaultLanguage.Provider>
) )

View file

@ -4,7 +4,7 @@ import Intro from "./00_Intro";
export default function () { export default function () {
return ( return (
<div> <div>
<h1>Protocolli di Rete</h1> <h1>Protocolli ed architettura di rete</h1>
<Intro/> <Intro/>
</div> </div>
) )