Print a shield to the console.
console.shield('Version', '1.0.0')
package tree; | |
/** | |
* Binary search tree implementation | |
*/ | |
public class BST<T extends Comparable<? super T>> implements Tree<T> { | |
/** | |
* A class representing a node of the binary tree. | |
*/ |
import System.Environment | |
import System.Exit | |
import Data.Char | |
import Data.List | |
import Data.Tuple | |
import Data.List.Split | |
import qualified Data.Map.Strict as Map | |
main = getArgs >>= parseArgs |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
show_git_branch() { | |
if [ ! -z "$(parse_git_branch)" ]; then | |
echo -e "\001\033[48;5;8;38;5;4m\002\ue0b0\001\033[0m\002\001\033[0;48;5;8m\002 \uf418 $(parse_git_branch) \001\033[0m\002\001\033[0;38;5;8m\002\ue0b0\001\033[0m\002 " | |
else | |
echo -e "\001\033[38;5;4m\002\ue0b0\001\033[0m\002 " | |
fi |
console.shield('Version', '1.0.0')
#!/bin/bash | |
sudo su | |
yum update -y | |
yum install yum-plugin-copr -y | |
yum copr enable @caddy/caddy -y | |
yum install caddy -y | |
printf ":80\nrespond \"Hello from $HOSTNAME\"" > /etc/caddy/Caddyfile | |
caddy start --config /etc/caddy/Caddyfile |
export async function action() { | |
await new Promise((resolve) => | |
setTimeout(resolve, 1000 + Math.random() * 1000), | |
) | |
if (Math.random() > 0.5) { | |
return { | |
error: 'There was an error fetching the data', | |
} | |
} |