- vscode
- node.js ( https://nodejs.org/en/ )
- parceljs (https://parceljs.org/)
installare parlcel-bundler: npm install -g parcel-bundler installazione react: https://blog.jakoblind.no/react-parcel/
| var sqlite3 = require("sqlite3").verbose(); | |
| var db = new sqlite3.Database("database.db"); | |
| db.serialize(function() { | |
| db.run("CREATE TABLE IF NOT EXISTS utenti (nome VARCHAR)"); | |
| const stmt = db.prepare("INSERT INTO utenti VALUES (?)"); | |
| for (var i = 0; i < 10; i++) { | |
| stmt.run("utente " + i); | |
| } | |
| stmt.finalize(); |
| // Dungeon.cpp : Questo file contiene la funzione 'main', in cui inizia e termina l'esecuzione del programma. | |
| // | |
| #include <iostream> | |
| #include <vector> | |
| #include <windows.h> | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Drawing; | |
| using UnityEngine; | |
| using UnityEngine.Tilemaps; | |
| public class Minimap : MonoBehaviour | |
| { | |
| enum CellKind { Empty, Room,Wall,Door }; | |
| public int mapSize=20; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script> | |
| <script src="https://unpkg.com/js-quadtree"></script> | |
| </head> | |
| <body> |
| https://codesandbox.io/s/inspiring-bardeen-gwjcv?file=/sketch.js |
| console.log("it works"); | |
| let data = []; | |
| let authors = []; | |
| /* | |
| fetch("https://type.fit/api/quotes") | |
| .then(r => r.json()) | |
| .then(body => { | |
| console.log(body) | |
| data = body; |
installare parlcel-bundler: npm install -g parcel-bundler installazione react: https://blog.jakoblind.no/react-parcel/
| const express = require("express") | |
| const app = express() | |
| // elenco di tutti i dischi: GET /vinyls | |
| app.get("/vinyls", (req, res) => { | |
| res.send([ | |
| { | |
| titolo: "disco 1", | |
| autore: 1 |