from collections import namedtuple
Point = namedtuple('Point', ['x', 'y'])
point1 = Point(24, 67)
print(point1.x)
print(point1.y)
https://angular.io/guide/rx-library
- A
promise
can be subcribed. - It will give an
observable
.
const secondsCounter = interval(1000);
secondsCounter.subscribe(n =>
console.log(`It's been ${n} seconds since subscribing!`));
Expose localhost port 8000 to the internet
ssh -R 80:localhost:8000 serveo.net
cd ~/.ssh/
ssh-keygen -t ed25519 -C "project_name_deployment"
- Input a file path to save your SSH key pair to. Example
project_name_deployment_rsa
- Enter a passphrase if you want. You can skip creating it by pressing
Enter
twice. - Backup the key somewhere safe and secure
Use de "track_memory" decorator on your functions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Reset | |
rm -rf /home/$USER/src | |
rm -rf /home/$USER/glpk | |
#Set JAVA_HOME | |
export JAVA_HOME=/usr/lib/jvm/default-runtime | |
#Download source code | |
mkdir -p /home/$USER/src | |
cd /home/$USER/src |
setxkbmap -model pc104 -layout ca -variant fr