FROM mcr.microsoft.com/vscode/devcontainers/universal:1-${VARIANT} as BASE
RUN sh <(curl -L https://nixos.org/nix/install) --no-daemon
RUN mkdir -p /home/codespace/.config/nixpkgs && echo '{ allowUnfree = true; }' >> /home/codespace/.config/nixpkgs/config.nix
RUN echo '. /home/codespace/.nix-profile/etc/profile.d/nix.sh' >> /home/codespace/.bashrc
# Install git
(ns coinstar | |
(:import [java.time LocalDate])) | |
(def working? (constantly false)) | |
(defn go | |
"Provided a `who` and `when`, returns the state of | |
a coinstar `when` the `who` goes to it. | |
Example: |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
export KAFKA_URL='kafka.service.consul:9092' | |
export ZOOKEEPER_URL='zookeeper.service.consul:2181' | |
export SCHEMA_REGISTRY_URL='http://schema-registry.localservice' | |
export FC_CONNECT_URL='http://workers-fc-connect.service.consul' |
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
- The link in the table of content jumps at the copy of the answer on this page.
- The link on the answer itself points back at the original post.
# Install iterm 2 https://www.iterm2.com/ | |
# Install 1password | |
#install homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/paks/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
# packages | |
brew install git git-crypt gpg autojump kube-ps1 stern asdf rlwrap rg |
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.
(ns saturn) | |
;; --------------------------------------------------------------------- | |
;; Signature parsing | |
(defprotocol IParse | |
(-parse [x])) | |
(extend-protocol IParse |
Places to eat/drink and have a good time | |
1. El Borrego Viudo (24 hours tacos, Revolución 241 esq. Viaducto, Tacubaya) Speciality: Tacos de cabeza | |
2. El Huequito (Pennsylvania 73, Col. Nápoles) Speciality: Tacos de pastor | |
3. El Vilsito (Petén 248 (esq. Av. Universidad)) Speciality: Costilla con queso | |
4. Fonda 99.99 (Calle Moras 347, Benito Juárez) Speciality: Tacos de cochinita pibil | |
5. El Tizoncito (Tamaulipas 122, Col. Condesa.) Speciality: Tacos de pastor | |
6. Los Parados (Monterrey 333, Col. Roma Sur) Speciality: Tacos de arrachera, vegetarian friendly | |
7. Los Cocuyos (Bolívar 56, Col. Centro) Speciality: Tacos de suadero (Go here if you feel adventurous) | |
8. La Tia Yeya (Citlaltepetl No. 25 entre Campeche y Amsterdam Col. Condesa) Speciality: Breakfast chilaquiles, vegetarian friendly |
(ns foobar.search | |
(:require-macros [cljs.core.async.macros :refer [go]]) | |
(:require [cljs.core.async :refer [<! chan put!] :as a] | |
[reagent.core :as reagent] | |
[reagent.ratom :refer [atom]])) | |
; Source: https://gist.github.com/Deraen/946ac9e6c6211c83f1e9 | |
(defn debounce [in ms] | |
"Creates a channel which will change put a new value to the output channel |