Skip to content

Instantly share code, notes, and snippets.

#include <image.h>
#include <io_tools.h>
namespace igg
{
Image::Image(const int &rows, const int &cols) : rows_(rows), cols_(cols)
{
// std::cout << "Explicita\n";
data_.reserve(rows_ * cols_);
@heitor31415
heitor31415 / pomodoro.sh
Last active March 6, 2021 11:54
Bash Pomodoro
#!/bin/bash
# My shell pomodoro
WORK=25 # Minutes of work
PAUSE=5 # Minutes to a short pause
TIMES=1 # Repeat Pomodoro cycle TIMES times
usage() { # Function: Print a help message.
echo "Usage: $0 [ -t TIMES ] [ -w WORK ] [ -p PAUSE ]" 1>&2
}
exit_abnormal() { # Function: Exit with error.