You may need to pull golang binaries with docker pull golang.
# Alias go with docker go and maps current working directory to container.
alias go="docker run -v $(pwd):/app -w /app golang go"| \documentclass[11pt,a4paper]{article} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[english]{babel} | |
| \usepackage{amsmath} | |
| \usepackage{amsfonts} | |
| \usepackage{amssymb} | |
| \usepackage{amsthm} | |
| \usepackage{graphicx} |
| \documentclass[11pt,a4paper]{article} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[english]{babel} | |
| \usepackage{amsmath} | |
| \usepackage{amsfonts} | |
| \usepackage{amssymb} | |
| \usepackage{amsthm} | |
| \usepackage{graphicx} |
La guida vi accompagnerà steb-by-step nella configurazione dell'ambiente di sviluppo per webapp su Windows.
L'IDE (Integrated Development Environment) è fortemente personale, quindi è possibile usare quello che più vi aggrada. Nella guida viene mostrata l'installazione di vscode, quello che usiamo anche a scuola.
Installazione: scaricare ed installare vscode dal sito ufficiale https://code.visualstudio.com/
Di seguito i dettagli del linguaggio TypeScript illustrato per esempi. Dove sottintesa, la semantica delle istruzioni non viene specificata.
Tutti gli esempi riportati sono eseguibili nel Playground ufficiale di TypeScript (https://www.typescriptlang.org/play).
Indice
| # The latex source filename | |
| MAINFILE?=report | |
| # The build strategy | |
| BUILD_STRATEGY?=pdf3 | |
| # The source folder | |
| SRC?=`pwd` | |
| # Main recipe |
| name: binary addition | |
| source code: | | |
| # Adds two binary numbers together. | |
| # Format: Given input a+b where a and b are binary numbers, | |
| # leaves c b on the tape, where c = a+b. | |
| # Example: '11+1' => '100 1'. | |
| input: '1011+11001' | |
| blank: ' ' | |
| start state: right |
| input: '00S00' | |
| blank: ' ' | |
| start state: init | |
| table: | |
| # we want to start with the tape centered in the separator symbol | |
| init: | |
| 0: { R } | |
| S: { L: start } | |
| start: | |
| 0: { L } |
| // A straightforward solution for "No Repeats Please" | |
| // coding interview exercise at freecodecamp.org | |
| // (https://www.freecodecamp.org/learn/coding-interview-prep/algorithms/no-repeats-please) | |
| // | |
| // Luca Parolari | |
| // | |
| // GitHub: github.com/lparolari | |
| // Email: [email protected] | |
| // Telegram: @lparolari |