The article previously hosted here is now published on my website: My ErgoDox Keyboard.
This file contains 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
(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
This file contains 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
# ::: 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 |
- Introduction
- Functional Programming
This file contains 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
(defn my-get | |
"@param {*} m | |
@param {*} k | |
@return {nil|Object}" | |
[m k] | |
(get m k)) | |
(defn foo | |
"@param {!Object} x" ;; non-nullable | |
[x] x) |
This file contains 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 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,
- Ruby code in the specified directory is run.
- Test input data (after 1st
__END__
but before 2nd__END__
) is sent to the script via stdin. - Output and/or errors are displayed in a popup.
- Program output is compared to test output data (after 2nd
__END__
). If it matches, then the popup becomes green.
OlderNewer