Skip to content

Instantly share code, notes, and snippets.

View lparolari's full-sized avatar
🎯
Focusing

Luca Parolari lparolari

🎯
Focusing
  • University of Padova
  • Padova • Italy
  • 13:34 (UTC +02:00)
View GitHub Profile
@lparolari
lparolari / big-data-course-proof-1.tex
Created March 17, 2020 21:27
Proof for the theorem at page 32 slides ``MapReduce''. (Big Data Computing course at University of Padua, Italy, AY 2019-2020).
\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}

Docker Aliases

go

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"
@lparolari
lparolari / development-environment-webapp-windows.md
Last active November 9, 2020 17:35
Impostare ambiente di sviluppo per webapp in Windows

Impostare ambiente di sviluppo per webapp in Windows

La guida vi accompagnerà steb-by-step nella configurazione dell'ambiente di sviluppo per webapp su Windows.

A. L'IDE

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/

@lparolari
lparolari / typescript-basics.md
Last active January 12, 2021 22:47
TypeScript Basics
@lparolari
lparolari / docker-util.md
Created December 31, 2020 08:56
On the fly docker commands

Docker Util

Compile from .md to .pdf with pandoc

docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/latex README.md -o README.pdf

Start a jupyter notebook server

# The latex source filename
MAINFILE?=report
# The build strategy
BUILD_STRATEGY?=pdf3
# The source folder
SRC?=`pwd`
# Main recipe
@lparolari
lparolari / turing-machine-binary-addition.yaml
Last active April 17, 2021 14:10
A Turing machine implementation of the binary sum algorithm. Powered by https://turingmachine.io/.
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
@lparolari
lparolari / turing-machine-greater.yaml
Last active April 17, 2021 14:10
A Turing machine implementation of the greater (or equal) algorithm. Powered by https://turingmachine.io/.
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 }
@lparolari
lparolari / no-repeats-please.js
Last active September 19, 2021 21:54
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)
// 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