Skip to content

Instantly share code, notes, and snippets.


Nick Horton theironsamurai

View GitHub Profile
theironsamurai /
Created Jun 25, 2016 — forked from jasongilman/
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

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 and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

theironsamurai / zotero-standalone.desktop
Created Jun 23, 2016 — forked from tpoisot/zotero-standalone.desktop
zotero desktop file for the standalone version in fedora
View zotero-standalone.desktop
[Desktop Entry]
Name=Zotero Standalone
theironsamurai / HaskellR.hs
Created Nov 7, 2015 — forked from drwebb/HaskellR.hs
GGplot in Haskell
View HaskellR.hs
demographicsAnalysis :: (MonadIO m, H.MonadR m) => Frame User -> m ()
demographicsAnalysis fr = do
let demographics = fmap (rcast :: User -> Record '[HaskellExperience
(nubbed, counts) = view (runGetter ((,) <$> Getter (_1) <*> Getter _2))
(sortByLens (_1.recommendHaskell)
(sortByLens (_1.haskellExperience)
theironsamurai /
Last active May 23, 2020
Ubuntu .bash_aliases
# Bash_Aliases on Ubuntu
export ALTERNATE_EDITOR="emacs"
export EDITOR="emacsclient -t"
# Haskell
# export PATH="$HOME/.cabal/bin":$PATH
# Clojure
# export PATH="$HOME/.lein":$PATH
View gist:2198fdb1ba66d52ba86a

Installing Clojure and Clojure Koans with Leiningen on Linux Mint 15

Remove Existing OpenJDK

Generally, I'd recommend running Oracle's Java, if you're doing Clojure development. Seeing how Clojure is built around the standard JVM from Oracle, it seems like it would be best to use that. First, let's remove the existing OpenJDK from our OS.

Search for OpenJDK

$ dpkg --get-selections | grep jdk
View pygments-monokai.css
.highlight { background-color: #49483e }
.c { color: #75715e } /* Comment */
.err { color: #960050; background-color: #1e0010 } /* Error */
.k { color: #66d9ef } /* Keyword */
.l { color: #ae81ff } /* Literal */
.n { color: #f8f8f2 } /* Name */
.o { color: #f92672 } /* Operator */
.p { color: #f8f8f2 } /* Punctuation */
.cm { color: #75715e } /* Comment.Multiline */
.cp { color: #75715e } /* Comment.Preproc */
View solarized-dark.css
/* Solarized Dark
For use with Jekyll and Pygments
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
View express-sample.cljs
(ns express_sample
(:require [cljs.nodejs :as node]))
(def express (node/require "express"))
(def app (. express (createServer)))
(defn -main [& args]
(doto app
(.use (. express (logger)))
(.get "/" (fn [req res]
View project.clj
(defproject gridsystem "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]
[compojure "1.1.5"]
[garden "1.0.0-SNAPSHOT"]
[ring/ring-jetty-adapter "0.2.5"]
[hiccup "1.0.4"]]
:plugins [[lein-ring "0.8.5"]]
:ring {:handler semantic-gs.handler/app}
{:dev {:dependencies [[ring-mock "0.1.5"]]}})
View project.clj
(defproject semantic-gs "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]
[compojure "1.1.5"]
[garden "0.1.0-beta5"]
[hiccup "1.0.3"]]
:plugins [[lein-ring "0.8.5"]]
:ring {:handler semantic-gs.handler/app}
{:dev {:dependencies [[ring-mock "0.1.5"]]}})
You can’t perform that action at this time.