Skip to content

Instantly share code, notes, and snippets.

View acobster's full-sized avatar

Coby Tamayo acobster

View GitHub Profile
@acobster
acobster / deps.edn
Last active January 28, 2021 21:16
RC Pairing Interview
;; This file isn't strictly necessary, but it helps with running a REPL concisely
{:deps {nrepl/nrepl {:mvn/version "0.8.3"}
cider/cider-nrepl {:mvn/version "0.25.6"}}
:aliases
{:repl
{:main-opts ["-m" "nrepl.cmdline" "--middleware"
"[cider.nrepl/cider-middleware]"]}}}
@acobster
acobster / paginate.js
Created September 13, 2021 02:01
Paginate a Zine!
/**
* Dynamically reorder page elements using the flexbox order property.
*/
function paginateZine({ pageSelector }) {
const pages = document.querySelectorAll(pageSelector)
const sheets = Math.ceil(pages.length / 4)
for (let s = 0; s < sheets; s++) {
const frontLeft = pages.length - 2 * s - 1
const frontRight = 2 * s
```sql
email varchar(100),
code varchar(64),
date_invited timestamp,
invited_by integer,
redeemed boolean,
UNIQUE (email, code),
```