How to use:
./wordle.sh
Or try the unlimit mode:
#!/usr/bin/env bb | |
#_" -*- mode: clojure; -*-" | |
;; Based on https://github.com/babashka/babashka/blob/master/examples/image_viewer.clj | |
(ns http-server | |
(:require [babashka.fs :as fs] | |
[clojure.java.browse :as browse] | |
[clojure.string :as str] | |
[clojure.tools.cli :refer [parse-opts]] | |
[org.httpkit.server :as server] |
(defn safe-merge | |
"Like merge, but throws if maps have the same keys but different values." | |
[& maps] | |
(reduce | |
(fn [m [m2k m2v :as re]] | |
(if-some [[_ mv :as le] (find m m2k)] | |
(if (= mv m2v) | |
m | |
(throw (ex-info "Attempted to safe-merge maps with conflicting entries" |
# Default config for sway | |
# | |
# Copy this to ~/.config/sway/config and edit it to your liking. | |
# | |
# Read `man 5 sway` for a complete reference. | |
### Variables | |
# | |
# Logo key. Use Mod1 for Alt. | |
set $mod Mod4 |
{:aliases | |
{:dev {:extra-deps {com.bhauman/rebel-readline {:mvn/version "0.1.2"} | |
org.clojure/tools.nrepl {:mvn/version "0.2.12"} | |
cider/cider-nrepl {:mvn/version "0.17.0-SNAPSHOT"}} | |
:main-opts ["-m" "repl"]}}} |
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
/server chat.freenode.net
defmodule MyApp do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
children = [ | |
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
dispatch: dispatch | |
]) |