Skip to content

Instantly share code, notes, and snippets.

View davincif's full-sized avatar
🎯
Focusing

Leonardo Da Vinci davincif

🎯
Focusing
  • CTW
  • Lisbon, Portugal
View GitHub Profile
@davincif
davincif / progressBar.py
Last active February 12, 2022 07:27
Python command line progress bar
######
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
@davincif
davincif / gist:20044c15f200d6665fcdc104030b8883
Created May 18, 2018 13:28 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@davincif
davincif / validate_cpf.py
Last active November 2, 2021 22:32
CPF Validation
import re
nondigit = re.compile('\D');
def validate_cpf(cpf):
global nondigit
cpf = nondigit.sub('', cpf)
@davincif
davincif / lines.py
Last active November 20, 2021 19:40
A project line counter in python
#!/usr/bin/python3
import os
import json
path = '../'
fileExtentions = [
'ts',
'js',
'json',