Skip to content

Instantly share code, notes, and snippets.

View nitwhiz's full-sized avatar

Andy Schönfeld nitwhiz

View GitHub Profile
@k15a
k15a / quicksort.js
Last active April 15, 2021 18:14
Quick-Sort in JavaScript
function quickSort(array) {
const length = array.length
// If length is smaller than two the array is already sorted
if (length < 2) {
return array
}
// Select the pivot and split the rest
const [pivot, ...rest] = array
@leandrosilva
leandrosilva / Makefile
Created March 11, 2011 15:58
Makefile to compile, run, and test Erlang applications
APP_NAME := my_awesome_app
all: compile
compile: clear
@cp src/$(APP_NAME).app ebin/
@erlc -pa ebin/ -o ebin/ src/*.erl
compile_test: compile
@erlc -pa ebin/ -o ebin/ test/*.erl