Skip to content

Instantly share code, notes, and snippets.

View ccamel's full-sized avatar
🧙‍♂️
Coding for the commons, crafting for the curious.

Chris ccamel

🧙‍♂️
Coding for the commons, crafting for the curious.
View GitHub Profile
@ccamel
ccamel / pi.sql
Created March 21, 2019 16:46
Computation of π with PostgreSQL Recursive Query
-- just for fun
-- compute π using the Leibniz formula
with recursive leibniz (n, r) as (
select 0, 0.
union
select n + 1, r + cast(power(-1, n) as decimal) / (2. * n + 1.)
from leibniz
where n < 10000
)
select 4. * r as pi from numbers offset 10000;
@ccamel
ccamel / keybase.md
Created March 11, 2019 14:38
keybase.md

Keybase proof

I hereby claim:

  • I am ccamel on github.
  • I am ccamel (https://keybase.io/ccamel) on keybase.
  • I have a public key ASCEogRDs38pK3VRKUSqmzccuEu--8K1pvPlN7vBoAeZSgo

To claim this, I am signing this object:

@ccamel
ccamel / sequence-diagram-1.plantuml
Created May 9, 2018 09:29
PlantUML - Sequence Diagram samples (with a nice rendering)
@startuml
' styles
skinparam handwritten true
skinparam monochrome false
skinparam packageStyle rect
skinparam defaultFontName FG Virgil
skinparam shadowing false
hide footbox