Skip to content

Instantly share code, notes, and snippets.

View benmangold's full-sized avatar

Ben Mangold benmangold

View GitHub Profile
@batmat
batmat / map-to-json.groovy
Created February 12, 2016 12:41
Sample Groovy code to transform a Map into a Json output
def someMap = [
'key1': "value",
'key2': 142.1
]
def json = new groovy.json.JsonBuilder()
json rootKey: someMap
println "json output: "
@brianshumate
brianshumate / docker-macos-terraform.md
Last active April 16, 2024 02:18
The Simplest Terraform with Docker on macOS

If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:

1. Install Docker

Install Docker for Mac if you have not already.

@timvisee
timvisee / falsehoods-programming-time-list.md
Last active June 29, 2024 23:24
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).