This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// Disable crazy VSCode default bindings | |
{ | |
"key": "ctrl+shift+w", | |
"command": "-workbench.action.closeWindow" | |
}, | |
{ | |
"key": "ctrl+w", | |
"command": "-workbench.action.closeActiveEditor" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns tbd.step | |
(:require | |
[clojure.spec.alpha :as s])) | |
(s/def ::binding-kvp (s/cat :lhs symbol? :rhs any?)) | |
(s/def ::bindings | |
(s/and | |
vector? | |
(s/conformer vec vec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns front.utilities.i18n-impl | |
(:require [front.i18n])) | |
(defn build-domain-index [text-vec] | |
(let [by-msgid (atom (transient {})) | |
by-msg (atom (transient {}))] | |
(doseq [{:keys [s_message s_message_id] :as text} text-vec] | |
(when-not (clojure.string/blank? s_message_id) | |
(swap! by-msgid assoc! s_message_id text)) | |
(when-not (clojure.string/blank? s_message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @input nvarchar(max) = | |
N'1 1 E | |
RFRFRFRF | |
1 1 E | |
3 2 N | |
FRRFLLFFRRFLL | |
3 3 N | |
0 3 W |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns front.tasks.watch-css | |
(:require [clojure.java.io] | |
[clojure.java.shell :refer [sh]] | |
[juxt.dirwatch :refer [watch-dir]] | |
[clojure.core.async :as a] | |
[clojure.string :as str] | |
#_[shadow.cljs.devtools.api :refer [send-to-runtimes!]])) | |
(defn debounce-chan | |
"Taken from https://gist.github.com/xfsnowind/e15cc2e6da74df81f129" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[reagent.ratom :as ra]) | |
(require '[reagent.core :as reagent]) | |
(require '[re-frame.core :as rf]) | |
(defn non-stuttering-text-control [props] | |
(let [text-value-atom (atom "") | |
outside-change-counter (ra/atom 0) | |
to-dispose (atom [])] | |
(fn [props] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In somethingLive.ex: | |
def handle_event("some_event", _params, socket) do | |
assign(socket, :updated_url, Routes.project_path(MyApp.Endpoint, :index)) | |
end | |
# In template: <%= js_url_update_script(assigns[:updated_url]) %> | |
# In form_helpers.ex, or similar: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initial Commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns mything.components.codemirror | |
(:require [reagent.core :as reagent] | |
[re-frame.core :as rf] | |
[reagent.interop :refer [$]] | |
cljsjs.codemirror | |
cljsjs.codemirror.mode.clojure | |
cljsjs.codemirror.mode.sql)) | |
(def codemirror-defaults {:lineNumbers true | |
:lineWrapping true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..................................X...X....X.X.X.X....XX.XXX...X.....XX....X..........XX.....X..X..XX..X.......X....X...XXX.X..X..XX....X.X..XX.X..X.X....X....X.X.XX.X..........XX..X....X.XX.X.XX..XXX.XXXXXX............X.....X..XX..XXX.....X.X.X.X....X..X.XX.XX.X..XX....X.......X..X.X...XX.XX..X..X..X..XX..X......X..XX.XX.XX..X.....X...XX..X.....XX......X.......X....X.................X.....................X...............X............X.X.......XX..XX......X.X.X...XXXX.X.XXXXXX.X.XX..X...X........X.....XX...X.XXXXXX.....XXXX.......X.X.X...XX..X.X....XXX...X....X..X.......X.X.........X.XX....X.........XX.XX.XX.X..X...X.X.X...XX....XX...........X........................X..X.X.X...XX....................X........XX.......X........X....X...............X............X..X.X.XXX...XXXX.....XX...X...X.....X......XX.X.X...X....X..X.X..X..X..XXX.X.XXXXX........XX....XX.X.XXXXX..X.X........X...........X..X.X.X...X......XX...X......X..X.X..X.X..X.....XX...X...X.....XX..X......X..X....X.XX.X..X.X.X.X.X.X..X....X.X....XX.X... |
NewerOlder