Skip to content

Instantly share code, notes, and snippets.

View herminiotorres's full-sized avatar
Grapes Vibes

Herminio Torres herminiotorres

Grapes Vibes
View GitHub Profile
herminiotorres / 01-Aprendendo
Last active March 1, 2024 03:35
Aprendendo Espanhol

Aprendendo Espanhol

Temperada 1 - Iniciante

Temperada 2 - Intermediário

Temperada 3 - Intermediário Avançado

Temperada 4 - Avançado

Adicional 5 - Pronomes Pessoais

Adicional 6 - Palavras mais utilizadas

Adicional 7 - Frases mais utilizadas

herminiotorres / settings.json
Created October 6, 2023 14:52
Zed Configuration Settings
// Zed settings
// For information on how to configure Zed, see the Zed
// documentation:
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
"theme": "Ayu Mirage",
from PyPDF2 import PdfReader, PdfWriter
from gtts import gTTS
import sys
# python3 --pdf Documents/book.pdf --range 30:31 --output preface.mp3
_opts = [opt for opt in sys.argv[1:] if opt.startswith("-")]
args = [arg for arg in sys.argv[1:] if not arg.startswith("-")]
pdfFile, rangePages, audioFile = args
herminiotorres / elixir_forum.js
Last active August 30, 2023 12:41
Script to get the winner number
const luckyNumber = Number(
const winnerNumber = Array.from(
'.thismonthsentriestable tr td:first-child'
.map((element) => {
herminiotorres /
Last active May 26, 2022 17:24
Corne Chocolate Low Profile v2.1.0
herminiotorres / 00 - Learn Tailwind CSS - Scrimba - Challenges
Last active March 1, 2024 14:54
Learn Tailwind CSS - Scrimba - Challenges Started

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
herminiotorres /
Last active February 27, 2021 17:50
emacs doom commands

emacs doom

C-x: press the x key while holding down the Control key M-x: press the x key while holding down the Meta key (if your computer doesn’t have a Meta key, see No Meta key) M-C-x: press the x key while holding down both Control and Meta C-M-x: a synonym for the above LFD: Linefeed or Newline; same as C-j RET: Return, sometimes marked Enter; same as C-m DEL: Delete, usually not the same as Backspace; same as C-? (see Backspace invokes help, if deleting invokes Emacs help) ESC: Escape; same as C-[

herminiotorres / page_live_test.exs
Created February 8, 2021 22:28 — forked from mcrumm/page_live_test.exs
LiveView artifacts
defmodule MyAppWeb.PageLiveTest do
use MyAppWeb.ConnCase
import Phoenix.LiveViewTest
@tag :tmp_dir
test "disconnected and connected render", %{conn: conn, tmp_dir: tmp_dir} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Phoenix!"