Skip to content

Instantly share code, notes, and snippets.

View naurojunior's full-sized avatar

Nauro da Silva Júnior naurojunior

View GitHub Profile
@caioaao
caioaao / collisions.clj
Last active April 24, 2025 00:54
Solution to Nubank's collision exercise, in Clojure
(ns collisions.core
(:require [clojure.string :as str])
(:gen-class))
(defn str->edge [s]
(->> (str/split s #" ")
(map #(Integer/parseInt %))))
(defn file-contents->edges [s]
(->> (str/split s #"\n")
@ben-albon
ben-albon / php5.6-pgsql.Dockerfile
Last active June 7, 2025 03:48
Docker PHP Image with PostgreSQL Driver
FROM php:5.6-apache
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
COPY src/ /var/www/html
; Comentários podem ser escritos com ponto e vírgula
; Clojure é escrito usando "forms", que são listas
; de argmentos dentro de () separados por espaço em branco.
;
; O primeiro argumento sempre é uma função ou macro e
; o restante são argumentos que serão passados para esta função
;
; Por exemplo:
(+ 1 2) ; => 3
@iros
iros / API.md
Created August 22, 2012 14:42
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: