Skip to content

Instantly share code, notes, and snippets.

View mowat27's full-sized avatar

Adrian Mowat mowat27

  • Fort William, Scotland
View GitHub Profile
@mowat27
mowat27 / presentation.sh
Created October 28, 2022 10:48
Code Archaeology Notes
#!/usr/bin/env bash
# Useful git commands using the rails codebase as an example:
# git clone git@github.com:rails/rails.git
# and my own example later
# git clone git@github.com:mowat27/maths.git
# You'll also need bat (brew install bat)
@mowat27
mowat27 / init.el
Created December 30, 2013 20:06
Emacs config for clojure + cider + paredit + auto-complete
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(defvar my-packages '(clojure-mode
cider
paredit
auto-complete
highlight-parentheses
@mowat27
mowat27 / getting_started.md
Last active August 2, 2020 21:40
Getting Started with Flexiclock

GETTING STARTED

Installation

Make sure you have your API token handy.

Download the bootstrap script to a temporary location and run it.

cd 
@mowat27
mowat27 / hammock.md
Last active July 26, 2020 10:35
Outline of Hammock Driven Development

Hammock Driven Development

Taken from Rich Hickey's day 2 keynote at Clojure Conj 2010.

Hammock Driven Development Presentation

Notes

@mowat27
mowat27 / problem_analysis.md
Last active October 25, 2018 07:35
Problem Analysis Checklist for developers

What is the problem?

  • What issue(s) have been reported?
  • What sort of abnormal behaviour have you noticed?
  • What error(s) are you seeing?

How does this problem affect your customers?

Many problems a team encounters will have a direct impact on how people use your sites. It is very important to understand how your work will affect your customers before you decide on a solution to the problem. If you don't, it will be tempting to write code that "fixes" the immediate issue but does not really improve the system as a whole. Instead of making the system better, you will have introduced technical debt that will be paid back in the form of unexpected problems or reduced flexibility later.

@mowat27
mowat27 / .gitignore
Last active June 11, 2018 12:25
Kit Lists
*.pdf
@mowat27
mowat27 / Connascence 2
Last active July 7, 2017 20:52
Conference Talk Ideas
* A Deeper Dive into each?
* Code examples?
* A chance to refactor
@mowat27
mowat27 / 01-vbox-prep.sh
Last active May 29, 2017 12:41
Virtual Box Linux VM Prep
#!/usr/bin/env bash
sudo apy update -y
sudo apt install -y linux-headers-generic linux-headers-$(uname -r) xserver-xorg xserver-xorg-core dkms
sudo apt upgrade -y
@mowat27
mowat27 / convert_to_es6.js
Created March 6, 2017 20:33
Example of why ES6 is cool
// Converting an ES5 function ES6
// Start
function getWords(text) {
return text.split(/\s/)
}
// Use const declaration
const getWords = function(text) {
return text.split(/\s/)
~/temp ❯❯❯ time zsh
~/temp ❯❯❯ function list {
function> cat <<EOF
function heredoc> Basic Price
Discount
Sub total
Factory options
Dealer options
Fuel and mats
Road fund licence