Skip to content

Instantly share code, notes, and snippets.

View karloscodes's full-sized avatar
👨‍💻
Building stuff

Carlos Castellanos karloscodes

👨‍💻
Building stuff
View GitHub Profile
@karloscodes
karloscodes / network-pr.svg
Created February 26, 2026 12:45
pr949-network-pr
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karloscodes
karloscodes / network-default.svg
Created February 26, 2026 12:44
pr949-network-default
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karloscodes
karloscodes / xb-pr-smoke.svg
Created February 26, 2026 12:36
pr949-pr-smoke
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karloscodes
karloscodes / xb-default-smoke.svg
Created February 26, 2026 12:36
pr949-default-smoke
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karloscodes
karloscodes / xing-post-login-15s.svg
Created February 26, 2026 12:23
pr949-xing-smoke-skeleton
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karloscodes
karloscodes / xing-app-after-login.svg
Created February 26, 2026 12:13
pr949-xingbox-browser-smoke
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karloscodes
karloscodes / tiny.svg
Created February 26, 2026 12:12
tiny svg test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karloscodes
karloscodes / optimistic-locking.md
Last active October 16, 2023 19:53
Pesimistic locking sequence diagram
sequenceDiagram
    participant John as John
    participant DB as Database
    participant Mary as Mary

    John->>DB: begin_transaction()
    Note over DB: Lock acquired on source & dest accounts
@karloscodes
karloscodes / fp-oop-di.js
Last active October 7, 2019 18:38
Depdency injection OOP vs FP in javascript. A use case for currying. Partial application.
// -----------------------------------------------
// OOP dependency injection (the repository implementation can be switched in runtime)
// -----------------------------------------------
class UserService {
constructor(userRepository) {
this.userRepository = userRepository
}
create(params) {
validate(params)
@karloscodes
karloscodes / docker-compose.yml
Created July 16, 2019 20:36
A versatile docker compose
version: '3.3'
services:
pg:
image: postgres:10
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- 5432:5432