Skip to content

Instantly share code, notes, and snippets.

View ararog's full-sized avatar
😄

ararog ararog

😄
  • Brazil
View GitHub Profile
@rponte
rponte / using-uuid-as-pk.md
Last active June 11, 2025 17:36
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@nicosingh
nicosingh / .gitignore
Last active May 1, 2025 20:39
ECS using Terraform sample
*.tfbackup
.terraform/
*.tfstate
.terraform.tfstate.lock.info
@brennanMKE
brennanMKE / EventEmitter.swift
Last active March 19, 2025 05:42
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}
@frasertweedale
frasertweedale / Middleware.hs
Last active August 21, 2017 19:32
WAI Middleware to modify request headers
{-# LANGUAGE OverloadedStrings #-}
module Middlware where
import Control.Monad ((<=<))
import qualified Data.ByteString as B
import Network.HTTP.Types
import Network.Wai
@arnaudsj
arnaudsj / core.clj
Last active August 29, 2015 14:07
Spark streaming tweets using Flambo Clojure library
(ns flambo-streaming-101.core
(:require [flambo.api :as f]
[flambo.streaming :as fs]
[flambo.conf :as fconf]
[flambo.function :refer [pair-function]]
[clj-time.format :as tf]
[clj-time.core :as tc]
[clojure.tools.trace :refer [trace]]
[clojure.java.shell :refer [sh]]
[clojure.pprint :refer [pprint]]