Skip to content

Instantly share code, notes, and snippets.

@joelxr
joelxr / slot-rotation.json
Last active September 10, 2021 19:23
slot-rotation
{ "schemaVersion": 1, "label": "Slot", "message": "green", "color": "green" }
@joelxr
joelxr / quickSort.js
Created November 6, 2020 10:59
quick sort
function quickSort(array) {
if (array.length <= 1) return array
const pivot = array[Math.floor(array.length / 2)]
return [
...quickSort(array.filter(e => e < pivot)),
...array.filter(e => e === pivot),
...quickSort(array.filter(e => e > pivot))
]
}
@joelxr
joelxr / init.vim
Last active November 19, 2018 19:13
if &compatible
set nocompatible
endif
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
call dein#add('Shougo/neosnippet.vim')
### Keybase proof
I hereby claim:
* I am joelxr on github.
* I am joelxr (https://keybase.io/joelxr) on keybase.
* I have a public key whose fingerprint is 7A1F 4CFE 692A BF29 7041 34AD 3ACF 14AB 7991 13A0
To claim this, I am signing this object: