This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Context | |
# https://twitter.com/mitchellh/status/1615797167607939072 | |
# https://marcofoco.com/blog/2023/01/21/10-balls/?fbclid=IwAR0PL9VxEjFMZ6sq2J8KIJRY2PSaPPTP6cBu12lrlWe0__9OGzE02yGNBRQ | |
variable "input_percentage" { | |
description = "A numerical percentage given as a float representation between 0.0 and 1.0 (Eg. `0.33`)" | |
type = number | |
validation { | |
condition = var.input_percentage >= 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
replicas = 5 | |
instances = [ | |
"001", | |
"002", | |
"003", | |
] | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pprint | |
import sys | |
from time import perf_counter | |
class Node(object): | |
previous: 'Node' | |
next: 'Node' | |
value: int |