Skip to content

Instantly share code, notes, and snippets.

View tcione's full-sized avatar

Tales Cione tcione

View GitHub Profile
@tcione
tcione / minimal-normalize.css
Created August 6, 2021 20:24
Very simple css reset
*, *:before, *:after {
/* https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing */
box-size: border-box;
}
html {
/*
This allows us to use readable rems.
- 24px becomes 2.4rem
- 10px becomes 1rem
@tcione
tcione / estrutura.md
Last active May 27, 2020 16:56
Exemplo de gitignore para conteúdo

Diretórios

|- /src
|  |- ...arquivos do projeto
|- /content
|  |- /samples
|  |  |- ...arquivos replicando a estrutura da pasta content
|  |- ...arquivos e pastas de conteúdo
| ... resto da estrutura
@tcione
tcione / weird_calculator.rb
Created April 28, 2020 12:55
WeirdCalculator DSL
# frozen_string_literal: true
# Calculates things in sequence. Just a DSL example
class WeirdCalculator
class << self
def starting_from(initial, &block)
new(initial).calculate(&block)
end
end