This file contains hidden or 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
class HomePage extends StatelessWidget { | |
HomePage(this.jwt, this.payload); | |
factory HomePage.fromBase64(String jwt) => | |
HomePage( | |
jwt, | |
json.decode( | |
ascii.decode( | |
base64.decode(base64.normalize(jwt.split(".")[1])) | |
) |
This file contains hidden or 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
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt -y install php7.4 | |
php -v | |
sudo apt-get install -y php7.4-{curl,mbstring,mcrypt,opcache,xml,readline,zip,gd} |
This file contains hidden or 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
Note: this assumes you are using ZSH shell. | |
## Installation | |
Install [asdf](https://github.com/asdf-vm/asdf): | |
``` | |
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0 | |
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc | |
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc |