Skip to content

Instantly share code, notes, and snippets.

View cortfritz's full-sized avatar
💭
what order: curiosity, empathy, clarity, energy, resolve?

Cort Fritz cortfritz

💭
what order: curiosity, empathy, clarity, energy, resolve?
View GitHub Profile
@zebreus
zebreus / firebase.tf
Last active August 28, 2024 07:46
Terraform configuration for creating a firebase project with firestore, functions and storage
# firebase.tf https://gist.githubusercontent.com/Zebreus/906b8870e49586adfe8bd7bbff43f0a8/raw/firebase.tf
# Terraform configuration for creating a firebase project with firestore, functions and storage
# Unfinished
terraform {
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = "4.11.0"
}
@cortfritz
cortfritz / Explore JSON in Bootstrap and Jade
Created July 26, 2012 19:44
Recursively display contents of JSON object using bootstrap and jade
mixin prettyDate(uglyDate)
daysAgo = ((((new Date() - uglyDate) / 1000) / 60) / 60) / 24
hours = uglyDate.getHours()
minutes = uglyDate.getMinutes()
ampm = hours >= 12 ? 'pm' : 'am'
hours = hours % 12
hours = hours ? hours : 12
minutes = minutes < 10 ? '0'+minutes : minutes
strTime = hours + ':' + minutes + ' ' + ampm