README.md
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
#!/usr/bin/env python3 | |
""" | |
Usage: | |
example.sh [options] | |
example.sh ( -h | --help ) | |
example.sh ( --version ) | |
Options: | |
-a, --all An optional flaag. | |
-b Another optional flag. |
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 | |
function hello() { | |
local fname="$1" | |
echo "Ciao, $fname" | |
} | |
echo "Ereditato dal terminale" | |
echo "\$USER: $USER" |
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
#!/usr/bin/env bash | |
# shellcheck disable=SC2128 | |
SOURCED=false && [ "$0" = "$BASH_SOURCE" ] || SOURCED=true | |
if ! $SOURCED; then | |
set -euo pipefail | |
IFS=$'\n\t' | |
fi | |
mypid="$$" |
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
#!/usr/bin/env bash | |
# shellcheck disable=SC2128 | |
SOURCED=false && [ "$0" = "$BASH_SOURCE" ] || SOURCED=true | |
debug=false | |
parallel=false | |
query='' | |
topic='' | |
read -rd '' docstring <<EOF |
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
#ifndef TSP_H | |
#define TSP_H | |
#ifdef __cplusplus | |
// C++ code | |
using namespace std; | |
namespace helpers { | |
long long get_elapsed_time(void); | |
bool has_reached_timeout(void); |
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
#!/usr/bin/env python | |
import argparse | |
import arrow | |
from matplotlib import pyplot as plt | |
from matplotlib import dates as mdates | |
def get_args(): | |
description=('Make an histogram from a list of timestamps') |
README.md
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
#!/usr/bin/env bash | |
# shellcheck disable=SC2128 | |
SOURCED=false && [ "$0" = "$BASH_SOURCE" ] || SOURCED=true | |
if ! $SOURCED; then | |
set -euo pipefail | |
IFS=$'\n\t' | |
fi | |
awk_script=$(cat <<'AWKSCRIPT' |
I hereby claim:
- I am cristiancantoro on github.
- I am cristiancantoro (https://keybase.io/cristiancantoro) on keybase.
- I have a public key ASD3Kw17RB1F0WqiERb4VZ7d9ZwMpusDGQjppWw3H8CcfAo
To claim this, I am signing this object: