Edit:
Turns out there’s a shorter way:
:%!sort | uniq
💫
Say you have want this text sorted and only with unique lines.
;;; ~/.homesick/repos/Dotfiles/home/.config/doom/+spell.el -*- lexical-binding: t; -*- | |
(after! flyspell | |
(cond | |
((executable-find "hunspell") | |
;; For the switching, "german" has to be also in this alist | |
(add-to-list 'ispell-hunspell-dict-paths-alist (list "german" (expand-file-name "~/Library/Spelling/de_AT.aff"))) | |
(setq ispell-program-name "hunspell" |
(defun +org|org-src-block-refmt-reason-ocaml-toggle () | |
"Convert the current src block from ocaml to reason and vice versa" | |
(interactive) | |
(org-element-map (org-element-at-point) 'src-block | |
(lambda (b) | |
(org-element-put-property b :language "test")))) |
// Stolen from https://twitter.com/aemkei/status/941410298388537346 | |
setInterval(_=>{ | |
document.body.innerHTML = "<h1>" + [ | |
..."😮😀😁😐😑😬" | |
][new Date%6] | |
}, 99) |
setInterval(_=>{ | |
document.body.innerHTML = "<h1>" + [ | |
..."😮😀😁😐😑😬" | |
][new Date%6] | |
}, 99) |
(function() { | |
const $ = document.querySelectorAll.bind(document) | |
const textContentFromDomQuery = query => [...$(query)].map(x => x.textContent) | |
const names = textContentFromDomQuery('.Cart__Name') | |
const prices = textContentFromDomQuery('.is-sum > .is-value') | |
const pairs = names | |
.map((x,i) => { | |
const name = x |
# Install Elixir + Phoenix + Erlang | |
brew install elixir | |
mix local.hex | |
brew install erlang | |
mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez | |
# Install PostgreSQL | |
brew install postgresql | |
initdb /usr/local/var/postgres -E utf8 |
brew install ghc cabal-install
stack new my-project
stack setup --install-ghc
stack install ghc-mod
# Rename your layer to this: | |
filename-2x.png, 50% filename-1x.png |