Skip to content

Instantly share code, notes, and snippets.


Airton Zanon airtonzanon

View GitHub Profile
View weekly_development_breakdown.txt
PHP 5:48h - 81.60% ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
TypeScript 1:11h - 16.85% ▓▓▓▓▓▓
SQL 0:06h - 1.47% ▓
Other 0:00h - 0.06%
JSON 0:00h - 0.01%
SCSS 0:00h - 0.01%
YAML 0:00h - 0.00%
airtonzanon / .zshrc
Last active Sep 8, 2021
my zsh file
View .zshrc
export ZSH="/Users/airtonzanon/.oh-my-zsh"
plugins=(git zsh-autosuggestions)
source $ZSH/
alias vim="nvim"
alias projects="cd ~/Documents/projects"
airtonzanon / cmdline.txt
Created May 4, 2021
raspberry py boot files + Waveshare LCD 5 inch
View cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=334dade7-02 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo quiet init=/usr/lib/raspi-config/ splash plymouth.ignore-serial-consoles
View init.vim
call plug#begin()
Plug 'ctrlpvim/ctrlp.vim'
Plug 'mkitt/tabline.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'wakatime/vim-wakatime'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dense-analysis/ale'
call plug#end()
airtonzanon /
Last active Apr 28, 2020
Create named construct with python
class NamedConstructor:
def __init__(self,
name: str,
age: int): = name
self.age = age
def create_person_from_dict(person_data: dict):
return NamedConstructor(
name = person_data['name'],
airtonzanon /
Last active Mar 5, 2020
Get your wakatime spend on languages and create an ascii chart.
import requests, json, os
# Go to, choose JSON format, choose languages chart type
# Click on "Get Embeddable Code", copy the url that it'll show
resp = requests.get(os.environ.get('WAKATIME_URL'))
data = []
for wakadata in resp.json()["data"]:
airtonzanon / init.vim
Last active Apr 1, 2019
View init.vim
call plug#begin()
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'phpactor/phpactor', {'for': 'php', 'do': 'composer install'}
Plug 'ctrlpvim/ctrlp.vim'
Plug 'mkitt/tabline.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'terryma/vim-multiple-cursors'
call plug#end()
colorscheme nord
airtonzanon /
Last active Feb 19, 2019 — forked from gbaman/
Simple guide for start using the Raspberry Pi Zero! With network connection

1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card with etcher. 2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. Create a new file simply called ssh in the SD card as well. By default SSH is now disabled so this is required to enable it. Remember - Make sure your file doesn't have an extension (like .txt etc)!
4. Finally, open up the cmdline.txt. Insert modules-load=dwc2,g_ether after rootwait.
5. That's it, eject the SD card from your computer, put it in your Raspberry Pi Zero and connect it via USB to your computer. It will take up to 90s to boot up (shorter on subsequent boots). It should then appear as a USB Ethernet device. You can SSH into it using raspberrypi.local as the address.
6. If it doesn't work, try to install [bonjour print



  • Sara Goleman
  • Michelangelo VanDan
  • Rasmus Lerdorf
  • Marco Pivetta
  • Bruno Neves
  • Airton Zanon
  • Ricardo Tulio
  • Taylor Otwell
  • Ben Ramsey
airtonzanon /
Created Oct 19, 2018
FizzBuzz implementation
import unittest
from fizzbuzz import FizzBuzz
class TestFizzBuzz(unittest.TestCase):
def test_display(self):
fizzBuzz = FizzBuzz()
self.assertEqual([1, 2, "fizz", 4, 'buzz', "fizz", 7, 8, "fizz", 'buzz', 11, "fizz", 13, 14, "fizzbuzz", 16, 17, "fizz", 19, 'buzz'], fizzBuzz.display())