Skip to content

Instantly share code, notes, and snippets.

Multi-window, multi-terminal split

Two terminal windows open, one with a bunch of long running watch tasks, the other with an editor. Each of the terminals is a view into one of two windows in a tmux session. Useful for having a vertically split screen with editor on right, and switching between a browser and other command windows on the left.

In first terminal:

  • tmux new-session -s first
  • tmux rename-window editor
  • emacs or whatever

In second terminal:

  • tmux new-session -t first -s second
@dimovich
dimovich / README.md
Created August 22, 2019 19:42 — forked from iantruslove/README.md
Building a simple ClojureScript single page web application [Den of Clojure Feb 2014]

Beyond hello world: building a simple ClojureScript single page web application

Shown at Feb '14 Den of Clojure

Intro

So you've read the blogs and thought how fun it would be to write web front ends with your favorite lisp. Perhaps you've even fired up the repl and done a little playing. But how do you get from there to a

@dimovich
dimovich / Den-of-Clojure-intro-1-talk.md
Created August 22, 2019 19:41 — forked from iantruslove/Den-of-Clojure-intro-1-talk.md
Den of Clojure - Intro to Clojure part 1

A gentle introduction to Clojure

Lisp Cycles (XKCD 297 / https://xkcd.com/297/)

Ian Truslove

Den of Clojure

2016-04-21


@dimovich
dimovich / README.md
Last active March 8, 2019 12:05 — forked from mfikes/README.md
cljs.main rebel-readline

Start cljs.main with rebel-readline:

clojure -Sdeps '{:deps {github-mfikes/cljs-main-rebel-readline {:git/url "https://gist.github.com/dimovich/7bd42c51743e56b0929931b689bd7fc9" :sha "801a149bbf257eeda1bce2b77fc4fee10c6d632b"}}}' -i @setup.clj -m cljs.main
@dimovich
dimovich / datascript-set-intersection.clj
Last active January 11, 2019 17:46 — forked from pesterhazy/datomic-set-intersection.clj
DataScript set intersection query
;; A variation for DataScript
(defn make-intersection-q
"Generate an intersection q for searchable tags."
[n]
(assert (pos? n))
(into
[:find '[(pull ?e [*]) ...]
:in '$ (->> (range 1 (inc n)) (mapv #(symbol (str "?v" %))))
:where]
@dimovich
dimovich / upload.cljs
Created March 12, 2018 13:19 — forked from paultopia/upload.cljs
clojurescript read uploaded text file in browser (derived from https://mrmcc3.github.io/post/csv-with-clojurescript/ )
(ns upload-file.core
(:require [reagent.core :refer [render atom]]
[cljs.core.async :refer [put! chan <! >!]])
(:require-macros [cljs.core.async.macros :refer [go go-loop]]))
;; derived from https://mrmcc3.github.io/post/csv-with-clojurescript/
;; and based on reagent-frontend template.
;; dependencies from project.clj in addition to clojure, clojurescript, and reagent:
;; [org.clojure/core.async "0.2.395"]