This file contains hidden or 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 my-app.errors | |
(:require [my-app.spec :as spec] | |
[cljs.spec.alpha :as s])) | |
(def error-map | |
{::spec/required "This field is required" | |
::spec/max-length "This field is too long" | |
:email/regex "Invalid email address" | |
:password/regex "Password must contain at least 1 letter and 1 number" | |
:password/min-length "Password must be at least 8 characters in length" |
This file contains hidden or 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 datomic-ensure | |
(:require [datomic.client.api :as d])) | |
(defn cardinality | |
"Returns the cardinality (:db.cardinality/one or | |
:db.cardinality/many) of the attribute" | |
[db attr] | |
(->> | |
(d/q '[:find ?v | |
:in $ ?attr |
This file contains hidden or 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
#!/bin/bash | |
while [ $# -gt 1 ] | |
do | |
case "$1" in | |
-p) | |
PROFILE_COMMAND="--profile $2" | |
;; | |
-r) | |
REGION=$2 | |
;; |
This file contains hidden or 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
clj -A:cider:dev -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["cider.nrepl/cider-middleware" "refactor-nrepl.middleware/wrap-refactor"])' |
This file contains hidden or 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
namespace MyProject.Core | |
{ | |
using MyProject.Utilities; | |
using NatCorderU.Core; | |
using System.Collections; | |
using UnityEngine; | |
public class ReplayRecorder : MonoBehaviour | |
{ | |
public int width = 960; |
This file contains hidden or 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
;;; Directory Local Variables | |
;;; For more information see (info "(emacs) Directory Variables") | |
((clojure-mode | |
(eval define-clojure-indent | |
(dom/a 1) | |
(dom/abbr 1) | |
(dom/address 1) | |
(dom/altGlyph 1) | |
(dom/altGlyphDef 1) |