Skip to content

Instantly share code, notes, and snippets.

joefromct / recur-with-atom.clj
Created Feb 11, 2019
can i remove the atom?
View recur-with-atom.clj
(def airplanes {:planes
[{:make "Cessna",
:year "1977",
:model {:#text "MoonDart", :at-color "blue"},
:owner ["mitch" "glen" "paulie"],
[{:#text "sample text - landed the plane and it was windy.",
:at-type "landing",
:at-weather "windy",
View read xlsx in
from openpyxl import load_workbook
from toolz import thread_last, partition, partial
from typing import List, Dict
def __list_to_dict_list(all_rows: List[List]) -> List[Dict]:
headers, *rest = all_rows
return [dict(zip(headers, x)) for x in rest]
# Change /dev/nvme**** to whatever drive/partitons you want
# This basically gets you to a GUI login
# rm * # dunno if * will work but, delete all partitions
# mkpart ESP fat32 1MiB 513MiB
# set 1 boot on
# mkpart primary ext4 513MiB 50%
# quit
cryptsetup -y -v luksFormat /dev/nvme0n1p2 # setup encrypted container, set container password
View db-async-test.core-test.clj
(ns db-async-test.core-test
(:require [jdbc.core :as j] ;; this is the namespace for funcool/clojure.jdbc
;;[ :as j]
[while-let.core :refer [while-let]]
[ :as io]
[ :as csv]
[clojure.core.async :as a :refer [>! >!! <! <!! go-loop go chan thread]]
[clojure.string :as str]))
View node.readline.cljs
(ns cljs-utils.core
(:require [clojure.string :as str]
[cljs.nodejs :as nodejs]))
(defn -main [& args]
(let [
readline (nodejs/require "readline")
View node.readline.js
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
rl.on('line', function (line) {
# given a list like this:
the_list = [1,2,3,4,5]
# We could call do_something() for each item in the list like this:
for li in the_list:
joefromct /
Created Dec 2, 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.

View postgres smartwrap sorta.sql
t as (select 'Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium'::text as t ),
regexp_replace((reverse(t::text)), E'(.{0,63} )(.*)' ,' \1 ') )
as test
from t
joefromct /
Created Sep 14, 2016 — forked from dmytro/
Start multiple synchronized SSH connections with Tmux
# ssh-multi
# D.Kovalov
# Based on
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$HOSTS" ]; then
You can’t perform that action at this time.