Skip to content

Instantly share code, notes, and snippets.

View mastrobirraio's full-sized avatar
🏠
Working from home

Giuseppe Matranga mastrobirraio

🏠
Working from home
  • CodeStorm
  • Italy
View GitHub Profile
@mastrobirraio
mastrobirraio / mkrequirements.sh
Last active April 21, 2020 14:05
Recreate project requirements script
Color_Off='\033[0m' # Text Reset
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
REQUIREMENTS_PATH="${PWD}/requirements.txt"
function print_out {
COLOR=$1
MESSAGE=$2
echo "${COLOR}${MESSAGE}${Color_Off}"

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@mastrobirraio
mastrobirraio / README-Template.md
Created June 21, 2019 09:20 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@mastrobirraio
mastrobirraio / logthon.py
Last active June 28, 2019 12:26
A simple logger for Python
# logthon.py
# -*- coding: utf-8 -*-
from datetime import datetime
"""
OUTPUT FORMAT
"""
STD_FORMAT = '[{timestamp}] {user} - {level}: {message}'
@mastrobirraio
mastrobirraio / tic-tac-toe.cpp
Created October 5, 2018 17:25
A simple tic tac toe game
#include <cstdlib>
#include <iostream>
using namespace std;
void board();
void player_choose(int player);
bool check_winner(int player);
void show_game(int player_winner);
char get_value(char mark);