(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(defn uuid [] (str (java.util.UUID/randomUUID))) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Docker does not run natively on OSX, only Linux. Docker Machine was created to add a Linux VM environment to run Docker containers on OSX. Install using Homebrew:
brew install docker
brew install docker-machine
docker-machine create
# ::: Dvorak - Vimium Custom key mappings ::: | |
# NOTE: This *unmaps* all keys and only adds frequently used ones. | |
# It mainly uses left hand keys so you don't have to let go of the mouse. | |
# How to use: open Vimium option screen, put this in "Custom key mappings" section. | |
unmapAll | |
# Link | |
map u LinkHints.activateMode | |
map U LinkHints.activateModeToOpenInNewTab |
(defn my-get | |
"@param {*} m | |
@param {*} k | |
@return {nil|Object}" | |
[m k] | |
(get m k)) | |
(defn foo | |
"@param {!Object} x" ;; non-nullable | |
[x] x) |
(ns onyx-tx-report-queue | |
(:require [clojure.core.async :refer [>!! alts!! chan close! put! thread]] | |
[clojure.tools.logging :as log] | |
;; :all so clj-refactor doesn't remove it: | |
[onyx.plugin.core-async :refer :all] | |
[datomic.api :as d]) | |
(:import [java.util.concurrent TimeUnit])) | |
(defn prepare-datom [db [e a v tx added]] | |
[e (d/ident db a) v tx added]) |
My Atom hack (init script) for speed programming in Ruby. This code is very ugly but works.
Upon saving,
__END__
but before 2nd __END__
) is sent to the script via stdin.__END__
). If it matches, then the popup becomes green.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.