Skip to content

Instantly share code, notes, and snippets.

View MarcoPortillo's full-sized avatar

Marco Portillo MarcoPortillo

View GitHub Profile
@nicolas-brousse
nicolas-brousse / postgres_uuid_primary_key_benchmark.rb
Last active June 26, 2023 22:31
PostgreSQL Serial/UUID as primary key benchmark
require "pg"
require "benchmark"
require "faker"
def say(msg)
puts msg
end
conn = PG.connect(dbname: "postgres")
@luankevinferreira
luankevinferreira / UploadFile.java
Last active April 13, 2024 22:54
Upload a file using HTTP put in Java
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
@staltz
staltz / introrx.md
Last active May 6, 2024 01:44
The introduction to Reactive Programming you've been missing
@sloria
sloria / bobp-python.md
Last active May 1, 2024 08:37
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens