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
#!/bin/bash | |
# | |
# Installs flatpak and configures 'flathub' as a repository for | |
# ubunut, mint or debian. | |
function get-dist-id { | |
echo "$(lsb_release -i | tail -n +1 | sed -Er "s/.*\:[[:space:]]//")" | |
} | |
function echo-install-prompt { |
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
// Shows how to implement a simple progress bar in C# | |
// usage: | |
// - create new terminal app: `dotnet new console --name terminal` | |
// - copy source code into `Program.cs` | |
// - compile and run `dotnet run` | |
// - have fun! | |
using System; | |
namespace terminal | |
{ |