Skip to content

Instantly share code, notes, and snippets.

View antedeguemon's full-sized avatar
🕸️

Vicente Merlo antedeguemon

🕸️
View GitHub Profile
@antedeguemon
antedeguemon / Dockerfile
Created November 23, 2023 05:45
pdfbook2 in MacOS using docker
FROM debian:bullseye
RUN apt-get update && \
apt-get -y install texlive-extra-utils
WORKDIR /data
defmodule CustomIEx.Utils do
@doc """
Puts some term into the clipboard
"""
def copy(data) do
# Copy to clipboard program depends on the OS
cmd = "pbcopy" ## --> mac
# cmd = "xclip -selection clipboard" ## --> linux
# cmd = "clip" ## --> windows
@antedeguemon
antedeguemon / floki_snippets.md
Last active September 29, 2021 21:43
Floki selectors snippets

Floki snippets

A collection of snippets for finding HTML elements using Floki.

Under construction.

Find the n-th element

html = """
@antedeguemon
antedeguemon / pr_checklist.md
Last active March 22, 2024 18:09
pr_checklist.md

Elixir pull request checklist

0. Structural

  • 0.1. No duplicated code
  • 0.2. Single Responsability Principle
  • 0.3. Open-Closed Principle
  • 0.4. Low coupling

1. Low-hanging-fruits

#lang racket
(require test-engine/racket-tests)
; Armazena uma tupla (caracter, contagem) que representa
; uma sequência.
;
; ch : elemento, normalmente string de tamanho 1
; count : inteiro
(struct chtuple (ch count))
# -*- encoding: utf-8 -*-
import math
import sys
try:
import pytest
except ImportError:
if len(sys.argv) < 1 or sys.argv[1] != '-f':
print 'pip2.7 install --user pytest'
print 'Ou eu vou ficar sem meus testes :^('
#lang racket
(require racket/gui)
;
; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; I wrote this code five years ago while learning functional programming.
; It is an example of what you should NOT do in a functional language (or in software writing in general).
;
; THIS IS NOT A GOOD EXAMPLE OF RACKET CODE.
;