Skip to content

Instantly share code, notes, and snippets.

View pepe's full-sized avatar

Josef Pospíšil pepe

View GitHub Profile
@pepe
pepe / SketchSystems.spec
Created November 14, 2018 09:07
Payment Evolution
Payment Evolution
Initial
create payment -> Created
Created
Pending
14 days -> Transfered
Transfered
pay -> Paid
Paid
@pepe
pepe / SketchSystems.spec
Last active November 14, 2018 08:50
Brokerage Evolution
Brokerage Evolution
Initial
sponsored buys packaged -> Created
two-component bonus -> Created
Created
Pending
14 days -> Transfered
Transfered
@pepe
pepe / SketchSystems.spec
Last active November 15, 2018 07:20
Order Evolution
Order Evolution
Initial*
click buy -> Prepared
Prepared
confirm buy -> Created
cancel -> Initial
Created
3 days -> Reminded
pay -> Paid
7 days -> Canceled
@pepe
pepe / SketchSystems.spec
Last active November 16, 2018 07:37
User Evolution
User Evolution
Not a User*
submit sign up -> Not Verified User
Not Verified User
click verification link -> Verified User
Verified User
submit registration -> Registered User
Registered User
Free Position*
30 days -> Locked Position
#! /bin/sh
npm init
shadow-cljs init
shadow-cljs
(require '[clojure.zip :as zip])
(defn zzz [root] (zip/zipper vector? rest (fn [[x _ _] children] (vec (cons x children))) root))
(def tree ["Bea" ["Ales" ["Tom"] ["Atom" ["Elektron" ["Quark"] ["Bark"]] ["Proton"]]] ["Jarko" ["Letko"] ["Zimko" ["Prosko"] ["Ledko"]]]])
(defn normalize-tree [root lenght]
(loop [loc (zzz root) lookup {} result []]
(if (zip/end? loc)
result
@pepe
pepe / contemporary-backend-development.md
Last active February 13, 2017 20:09
Contemporary Backend Development - CULS
author date title
Pepe
2017-02-12
The Intro

Contemporary Backend Development


@pepe
pepe / decks.md
Last active December 25, 2016 18:43
Sample Markdown for showrum
author date title
Pepe
2016-12-12
The Intro

Showrum Presentation Software


@pepe
pepe / init.lua
Created March 11, 2016 08:49
Time giving hammerspoon snippet
-- Quit Slack, then run it after 30 minutes
hs.hotkey.bind({"ctrl", "alt", "cmd", "shift"}, "L", function()
hs.alert.show(" No Slacking", 0.5)
hs.application.find("Slack"):kill()
hs.timer.doAfter(1800, function()
hs.application.launchOrFocus("Slack")
hs.alert.show(" Slacking", 0.5)
end)
end)
@pepe
pepe / statuses_spec.md
Created March 8, 2016 08:35
Oh look, this markdown is also spec.

Statuses Page

  • On statuses page

Showing all teams

  • Verify "7" other statuses