As configured in my dotfiles.
start new:
tmux
start new with session name:
// original (broken) version is here: http://ivan-ghandhi.livejournal.com/942493.html | |
// My fix: don't treat arguments as if it were an array | |
// (Use Array.prototype.slice.call() to convert it) | |
function stacktrace() { | |
function st2(f) { | |
return !f ? [] : | |
st2(f.caller).concat([f.toString().split('(')[0].substring(9) + '(' + Array.prototype.slice.call(f.arguments).join(',') + ')']); | |
} | |
return st2(arguments.callee.caller); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
<div class='row'> | |
<div class='span-12'> </div> | |
</div> | |
<div class='row'> | |
<div class='span-6'> </div> | |
<div class='span-6 last'> </div> | |
</div> | |
<div class='row'> |
#Sample code | |
#Hello world | |
"Hello world!" print | |
#Factorial | |
factorial := method(n, if(n == 1, 1, n * factorial(n - 1))) | |
99 bottles of beer |
jack-in into normal Clojure nREPL. Run:
(require '[cljs.repl :as repl] '[cljs.repl.node :as node])
(compile 'cljs.repl.node)
(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.
Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache
as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.
Check the gist's comments for any further tips and instructions, especially if you are running into problems!
Results after following the guide as of 11.01.2017 13:08:
;; in your project definition | |
;; [cljsjs/react-select "1.0.0-rc.1" :exclusions [cljsjs/react]] | |
;; See react-select documentation: https://github.com/JedWatson/react-select | |
(ns example.select | |
(:require [reagent.core :as r] | |
[cljsjs.react-select])) | |
(defn select |
LVM on LUKS Arch installation with systemd-boot
Sources:
Note: If you want a simpler encryption setup (with LUKS only), you can instead use the archinstall "guided" installer included with Arch since April 2021.
;; ~/.config/conjure/conjure.edn | |
{:conns | |
;; My `clj -Aprepl-server` alias spits out a `.socket-port` file when it starts | |
;; a prepl server. This configuration allows Conjure to find the prepl server | |
;; without needing to specify the port explicitly. | |
{:cwd {:port #slurp-edn ".socket-port"}}} |