This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns io.github.luciolucio.ranking | |
| (:require [cheshire.core :as json] | |
| [clojure.pprint :refer [print-table]] | |
| [medley.core :refer [map-vals]])) | |
| ; 1. Copiar os JSON da página de emoji do Slack, um pra cada arquivo | |
| ; 2. Nomear sequencialmente `pg1.json`, `pg2.json`... e salvar em `resources` | |
| ; 3. Alterar o `last-page` pra refletir o número do último. pg12.json -> (def last-page 12) | |
| ; 4. Rodar o código comentado |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git remote set-head origin --auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {:ignore-warnings true} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log --pretty=format:"%h%x09%an%x09%s" reference1..reference2 | |
| # %h = abbreviated commit hash | |
| # %x09 = tab (character for code 9) | |
| # %an = author name | |
| # %ad = author date (format respects --date= option) | |
| # %s = subject | |
| # From https://www.kernel.org/pub/software/scm/git/docs/git-log.html | |
| # PRETTY FORMATS section |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| fswatch *.ly | xargs -n1 basename | xargs -n1 ~/cmd/lilypond |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias u='echo -n `uuidgen` | tr "[A-Z]" "[a-z]" | pbcopy' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Generate a `:something-intensifies:` Slack emoji, given a reasonable image | |
| # input. I recommend grabbing an emoji from https://emojipedia.org/ | |
| set -euo pipefail | |
| # Number of frames of shaking | |
| count=10 | |
| # Max pixels to move while shaking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fswatch -o ~/path/to/watch | xargs -n1 -I{} ~/script/to/run/when/files/change.sh |
NewerOlder