Skip to content

Instantly share code, notes, and snippets.

View matheusfrancisco's full-sized avatar
❤️
(conding (assoc [:clojure, :python] :rust)) ;=> Adding :rust to my skills

Matheus Francisco matheusfrancisco

❤️
(conding (assoc [:clojure, :python] :rust)) ;=> Adding :rust to my skills
View GitHub Profile
@matheusfrancisco
matheusfrancisco / clojure-learning-list.md
Created February 7, 2024 11:55 — forked from ssrihari/clojure-learning-list.md
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
@matheusfrancisco
matheusfrancisco / pathom.clj
Last active February 17, 2021 16:37
pathom.clj
(ns buzzlabs.scraper.actions
(:require
[com.wsscode.pathom3.connect.built-in.resolvers :as pbir]
[com.wsscode.pathom3.interface.eql :as p.eql]
[com.wsscode.pathom3.interface.async.eql :as pa.eql]
[com.wsscode.pathom3.connect.indexes :as pci]
[com.wsscode.pathom3.connect.operation :as pco]
[com.wsscode.pathom3.interface.smart-map :as psm]
[com.wsscode.pathom3.connect.built-in.resolvers :as pbir]
(ns example.core
(:require [messenger.core :as msg]
[cljs.core.async :refer [<!]])
(:require-macros [messenger.macros :refer [deflistener]]
[cljs.core.async.macros :refer [go]]))
; Define an iframe to communicate with.
(def iframe (js/document.getElementById "iframe"))
@matheusfrancisco
matheusfrancisco / code-review.md
Last active June 25, 2020 19:05
Code review checklist

Code Review

Checklist

  • Names (Variables, Functions, Class)
  • Loops com complexidade linear O(n) ao invés de O(n²)
  • Queries sequenciais sem dependência
  • Criação de índice somente com concurrently: true
  • Adicionar coluna com defaultValue mesmo que seja null para evitar lock.
@matheusfrancisco
matheusfrancisco / JGitUtil.java
Created June 21, 2020 12:55 — forked from porcelli/JGitUtil.java
jgit on bare repo
public static void delete(final Git git, final String branchName, final String path,
final String name, final String email, final String message, final TimeZone timeZone, final Date when) {
commit(git, branchName, path, null, name, email, message, timeZone, when);
}
public static void commit(final Git git, final String branchName, final String path, final File file,
final String name, final String email, final String message, final TimeZone timeZone, final Date when) {
final String gitPath = fixPath(path);
@matheusfrancisco
matheusfrancisco / tmux.md
Created February 5, 2020 20:21 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a