This file contains hidden or 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
# NOT MY CODE! TAKEN FROM THE OFFICIAL DOCS: | |
# https://www.terraform.io/docs/providers/aws/r/api_gateway_account.html | |
# and saved here as a backup. | |
resource "aws_api_gateway_account" "demo" { | |
cloudwatch_role_arn = "${aws_iam_role.cloudwatch.arn}" | |
} | |
resource "aws_iam_role" "cloudwatch" { | |
name = "api_gateway_cloudwatch_global" |
This file contains hidden or 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 java.util.concurrent.atomic.AtomicInteger | |
class CircularArray<T> : Iterable<T>, Cloneable { | |
/** | |
* Creates a new instance of the array with the given size. | |
*/ | |
constructor(bufferSize: Int) { | |
this.arr = arrayOfNulls(bufferSize) | |
this.tail = -1 |