Skip to content

Instantly share code, notes, and snippets.

View rafaeldelboni's full-sized avatar
🎨

Rafael Delboni rafaeldelboni

🎨
View GitHub Profile
@akamud
akamud / .vsvimrc
Last active August 24, 2018 16:40
VsVim RC
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>
@souenzzo
souenzzo / core.clj
Last active February 3, 2019 23:44
primeiro hangout da Clojurers https://t.me/clojurebrasil
;; 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"
@daveyarwood
daveyarwood / 00-conjure.edn
Last active November 21, 2019 03:03
Dave's setup for starting a prepl server in Boot projects
;; ~/.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"}}}

Arch Linux recipe

Keyboard

If the keyboard is not American layout, load the target keyboard layout by running the following command:

loadkeys br-abnt2
@daveyarwood
daveyarwood / 00-home-dir-conjure.edn
Last active February 5, 2020 17:22
Dave's setup for starting a prepl server in tools.deps projects
;; ~/.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"}}}
@leveled
leveled / debugging slow vim
Created January 5, 2017 19:56
Commands to debug vim performance and determine slow plugins/functions
:profile start profile.log
:profile func *
:profile file *
" At this point do slow actions
:profile pause
:noautocmd qall!

Graphics

CLJC

  • Quil Graphics and animation sketches, based on Processing
  • th.ing/geom a comprehensive and modular geometry & visualization toolkit. WebGL, OpenGL, SVG.
  • Iglu Turning data into GLSL shaders for use by OpenGL and WebGL. By Zach Oakes, part of play-cljc.

Clojure

@finalfantasia
finalfantasia / shadow_cljs_and_fireplace_vim_integration.md
Last active March 8, 2023 19:10
Shadow-CLJS and Fireplace.vim Integration
  1. Create an app following the official Shadow-CLJS Quick Start instructions.
  2. Modify shadow-cljs.edn
;; shadow-cljs configuration
{:source-paths
 ["src/dev"
  "src/main"
  "src/test"]

 ;; ADD - CIDER middleware for nREPL (required by fireplace.vim)
@p4bl0-
p4bl0- / 00_readme.md
Last active October 12, 2023 09:09
A complete compiler for a simple language (in less than 150 LoC)

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"

@didibus
didibus / clojure-right-tool.md
Last active January 15, 2024 11:23
When is Clojure "the right tool for the job"?

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: