Skip to content

Instantly share code, notes, and snippets.

View GiullianoRossi1987's full-sized avatar
Working

Giulliano Rossi GiullianoRossi1987

Working
  • Peruíbe, São Paulo- Brazil
View GitHub Profile
@GiullianoRossi1987
GiullianoRossi1987 / splitter.cpp
Created December 16, 2020 22:18
A Simple split function for strings/char[] c++
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include <algorithm>
std::vector<std::string> split(std::string str, char delimiter){
std::vector<std::string> result;
// std::cout << str << std::endl;
std::string buffer = "";
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
const int bt1 = 7;
const int bt2 = 6;
const int ledI = 4;
const int ledC = 3;
int acertos = 0;
const char* integrantes[5] = {"Giulliano", "Luccas", "Rian", "Henrique", "Diogo"};
// tmp
@GiullianoRossi1987
GiullianoRossi1987 / gitIgnoreFunction.sh
Last active April 19, 2020 14:05
Removes the cache files on .gitignore, whereever you are.
#!/bin/bash
# HELLO! I made that function in bash to help me when i must clean the folders and files on my .gitignore
# I made it to work in any application with the root path
function cleanGitIgnore(){
for itemIgnore in $(cat .gitignore); do
# edit - 2020-04-19
if [ $1 == "-y" ]
then
<?php
/**
* That namespace have the classes to the management of a SQLite3 database.
* It have's exceptions and the main classes.
* @author Giulliano Rossi <giulliano.scatalon.rossi@gmail.com>
*/
namespace SQLite3Connection{
use Exception;
use SQLite3;
@GiullianoRossi1987
GiullianoRossi1987 / jsonDbConnection.py
Created December 14, 2019 14:06
A generic class for manage JSON files with python.
# coding = utf-8
# using namespace std
import json
from typing import AnyStr
class JSONConnection(object):
"""
"""
json_file = AnyStr
got_json = False
# coding = utf-8
# using namespace std
class ColorSystem(object):
"""
That class contains the main data information to change ANSI codification of a string
:cvar _foreground: A dict that contain the ANSI configuration of the letter on the text.
:cvar _foreground_modes: Another dict to the letter ANSI configuration, but that contains options, not colors,
options such as bold letter or inverse colors