- High level overview https://yogthos.github.io/ClojureDistilled.html
- An Animated Introduction to Clojure https://markm208.github.io/cljbook/
- Interactive tutorial in a browser https://tryclojure.org/
- Interactive exercises http://clojurescriptkoans.com/
- Clerk notebooks with introductory examples https://github.clerk.garden/anthonygalea/notes-on-clojure
- More interactive exercises https://4clojure.oxal.org/
- Lambda Island tutorials https://lambdaisland.com/
- Functional Programming with Clojure resources https://practicalli.github.io/
# install this as pre-requisite | |
brew install bluetoothconnector | |
brew install switchaudio-osx | |
# In automator, create a new "Quick Action" Shell Script with no input and in any application: | |
# mac and name for the airpods can be found executing: BluetoothConnector | |
set -e | |
mac=0c-3b-50-96-75-34 |
javascript:(function() { | |
function copyToClipboard(text) { | |
if (window.clipboardData && window.clipboardData.setData) { | |
/*IE specific code path to prevent textarea being shown while dialog is visible.*/ | |
return clipboardData.setData("Text", text); | |
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { | |
var textarea = document.createElement("textarea"); | |
textarea.textContent = text; |
############### | |
# Step 0: | |
# Disclaimer | |
# | |
# RAM DISK ARE VOLATILE. YOU WILL LOOSE DATA IF POWER IS INTERRUPTED. | |
# | |
############### | |
# Step 1: |
; gist doesn't know what fennel is so let's say clj | |
; vi: ft=clojure | |
(set hs.logger.defaultLogLevel "info") | |
(local {:application app :hotkey hotkey} hs) | |
; use the SpoonInstall Spoon easy installing+loading of Spoons | |
(hs.loadSpoon :SpoonInstall) | |
(local install (. spoon :SpoonInstall)) | |
; for window sizing, use the WIndowHalfsAndThirds Spoon until I can write something custom |
require 'webrick' | |
require 'fileutils' | |
if ARGV.length != 0 | |
root = ARGV.first.gsub('\\', '/') | |
else | |
root = '.' | |
end | |
BACKUP_DIR = 'bak' |
{:paths ["." "src" "test"] | |
:deps {expound {:mvn/version "0.8.4"} | |
clansi {:mvn/version "1.0.0"} | |
cider/cider-nrepl {:mvn/version "0.24.0"} | |
refactor-nrepl {:mvn/version "2.5.0"} | |
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}} |
I was talking to a coworker recently about general techniques that almost always form the core of any effort to write very fast, down-to-the-metal hot path code on the JVM, and they pointed out that there really isn't a particularly good place to go for this information. It occurred to me that, really, I had more or less picked up all of it by word of mouth and experience, and there just aren't any good reference sources on the topic. So… here's my word of mouth.
This is by no means a comprehensive gist. It's also important to understand that the techniques that I outline in here are not 100% absolute either. Performance on the JVM is an incredibly complicated subject, and while there are rules that almost always hold true, the "almost" remains very salient. Also, for many or even most applications, there will be other techniques that I'm not mentioning which will have a greater impact. JMH, Java Flight Recorder, and a good profiler are your very best friend! Mea
#!/bin/bash | |
CURRENT=$(git branch | grep "*" | cut -c3-) | |
printf "Your current branch is '$CURRENT'. Will be ignored.\n\n" | |
BRANCHES=$(git branch | cut -c3-) | |
BRANCHES=${BRANCHES[@]/$CURRENT} | |
for BRANCH in ${BRANCHES} | |
do |