If the keyboard is not American layout, load the target keyboard layout by running the following command:
loadkeys br-abnt2
set clipboard=unnamed | |
imap jj <ESC> | |
nnoremap <Leader>s :%s/\<<C-r><C-w>\>/ | |
nnoremap <Leader>a :noh<CR> | |
nnoremap <Leader>c *Nciw | |
nnoremap <Leader>f :/\%<c-r>=line('.')<cr>l | |
nnoremap <CR> o<ESC> |
;; Deve estar em `src/clojurebrasil/core.clj` | |
;; Execute `lein repl` na pasta do project.clj e tudo deve funcionar | |
(ns clojurebrasil.core | |
(:require [datomic.api :as d] | |
[cheshire.core :as cheshire] | |
[io.pedestal.http :as http])) | |
(def schema | |
[{:db/doc "id do usuário" |
;; ~/.config/conjure/conjure.edn | |
{:conns | |
;; My `prepl-server` task spits out a `.socket-port` file when it starts a | |
;; prepl server. This configuration allows Conjure to find the prepl server | |
;; without needing to specify the port explicitly. | |
{:cwd {:port #slurp-edn ".socket-port"}}} |
;; ~/.config/conjure/conjure.edn | |
{:conns | |
;; My `clj -Aprepl-server` alias spits out a `.socket-port` file when it starts | |
;; a prepl server. This configuration allows Conjure to find the prepl server | |
;; without needing to specify the port explicitly. | |
{:cwd {:port #slurp-edn ".socket-port"}}} |
:profile start profile.log | |
:profile func * | |
:profile file * | |
" At this point do slow actions | |
:profile pause | |
:noautocmd qall! |
shadow-cljs.edn
;; shadow-cljs configuration
{:source-paths
["src/dev"
"src/main"
"src/test"]
;; ADD - CIDER middleware for nREPL (required by fireplace.vim)
This project is a tiny compiler for a very simple language consisting of boolean expression.
The language has two constants: 1
for true and 0
for false, and 4 logic gates:
!
(not), &
(and), |
(or), and ^
(xor).
It can also use parentheses to manage priorities.
Here is its grammar in BNF format:
expr ::= "0" | "1"
My answer to: https://www.reddit.com/r/Clojure/comments/pcwypb/us_engineers_love_to_say_the_right_tool_for_the/ which asked to know when and at what is Clojure "the right tool for the job"?
My take is that in general, the right tool for the job actually doesn't matter that much when it comes to programming language.
There are only a few cases where the options of tools that can do a sufficiently good job at the task become limited.
That's why they are called: General-purpose programming languages, because they can be used generally for most use cases without issues.
Let's look at some of the dimensions that make a difference and what I think of Clojure for them: