Skip to content

Instantly share code, notes, and snippets.

View chicolucio's full-sized avatar
:atom:

Francisco B. chicolucio

:atom:
View GitHub Profile
@chicolucio
chicolucio / tutorial_ipython.txt
Created September 30, 2020 14:59
tutorial_ipython.txt
>>> 2 + 2
4
>>> 2**3 # potência
8
>>> lista = [1, 2.3, ['texto',4]]
>>> lista
[1, 2.3, ['texto', 4]]
>>> len(lista)
3
>>> import math
@chicolucio
chicolucio / pomodoro.sh
Created June 6, 2020 12:12 — forked from jameswpm/pomodoro.sh
Minimalistic Pomodoro Timer
#!/bin/bash
#
# Minimalistic_Pomodoro_Timer
#
# Based on the SU answer found here: https://superuser.com/questions/224265/pomodoro-timer-for-linux/669811#669811
#
# Tested in Ubuntu 16.04 and Arch
pomodorotime () {
notify-send "Time to Work" "Focus" -u normal -a 'Pomodoro' -i $HOME/Documentos/icon.png
paplay /usr/share/sounds/freedesktop/stereo/window-attention.oga
@chicolucio
chicolucio / magic_indexes.py
Created November 1, 2019 12:07 — forked from henriquebastos/magic_indexes.py
IPython Magic to show sequence's indexes
"""
IPython Magic to show sequence's indexes.
Useful to demonstrate how python indexes works with strings.
Example:
>>> %indexes henrique
0 1 2 3 4 5 6 7
h e n r i q u e