Skip to content

Instantly share code, notes, and snippets.

@vitordino
vitordino / git-prepend.sh
Created September 4, 2018 09:03
really useful for prepending some message on a branch, to reference issues or a scope of work
git filter-branch -f --msg-filter 'sed "1 s/^/LOREM_IPSUM: /"' origin/master..HEAD
# string to prepend ⬏───────────⬏ ⬑ range of commits
@vitordino
vitordino / ISO 639 1.js
Created August 10, 2018 16:45
i18n codes
// List of language codes according to ISO 639-1.
// Source: <https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes>
var ISO_639_1 = {
'ab': 'Abkhazian',
'aa': 'Afar',
'af': 'Afrikaans',
'ak': 'Akan',
'sq': 'Albanian',
'am': 'Amharic',
@vitordino
vitordino / breakpoints.styl
Last active October 6, 2017 05:42
[stylus] breakpoints smixin
// ---------------------
// breakpoints mixin
// ---------------------
// define breakpoints (you can modify or rename them, or create as many as you like)
breakpoints = {
xs: 0,
sm: 480px,