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

Keybase proof

I hereby claim:

  • I am herminiotorres on github.
  • I am herminiotorres ( on keybase.
  • I have a public key whose fingerprint is FEAA 2800 4DD2 A271 AA33 E90F C3A8 C64E F186 D823

To claim this, I am signing this object:

herminiotorres /
Created July 17, 2019 20:49 — forked from wojteklu/
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

herminiotorres /
Created August 30, 2019 19:22 — forked from subfuzion/
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

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!"
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-[

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
herminiotorres / 00 - Learn Tailwind CSS - Scrimba - Challenges
Last active March 1, 2024 14:54
Learn Tailwind CSS - Scrimba - Challenges Started
herminiotorres /
Last active May 26, 2022 17:24
Corne Chocolate Low Profile v2.1.0