.bat to iterate through files and extract the first 10 characters from its name.
setlocal ENABLEDELAYEDEXPANSION
for %%f in (posts/*) do (
set var=%%f
@echo %var:~0,10%
)
| ; https://stackoverflow.com/questions/36032562/extract-values-from-vector-of-maps-conditionally-in-clojure | |
| (map val (filter (comp #{:a} key) (apply concat vector-of-maps))) | |
| ; Grab URL from JavaScript window API | |
| (ns awesome.stuff.to.learn | |
| (:require [cemerick.url :as url])) | |
| (defn [] (:anchor (url/url (-> js/window .-location .-href)))) | |
| ; (compare-and-swap) function takes four arguments: an entity id, an attribute, an old value, and a new value. |
| ; java.lang.RuntimeException: Unable to resolve symbol: catch in this context, compiling: <file>:<line>:<column> | |
| ; catch` is not a function or macro, it's special syntax only understood in the context of the special form `try`. You can't do this without writing your own form of try (see try+ in slingshot for an example of that). | |
| ; https://groups.google.com/forum/#!topic/clojure/4EN7RDbKqVE | |
| ; example - but still doesn't work in my code | |
| ; https://github.com/scgilardi/slingshot | |
| (ns math.expression | |
| (:require [tensor.parse] |
.bat to iterate through files and extract the first 10 characters from its name.
setlocal ENABLEDELAYEDEXPANSION
for %%f in (posts/*) do (
set var=%%f
@echo %var:~0,10%
)