๐
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
class Program | |
{ | |
static ManualResetEvent _produce = new ManualResetEvent(false); | |
static ManualResetEvent _consume = new ManualResetEvent(false); | |
private static void Run() | |
{ | |
while (true) | |
{ | |
_produce.WaitOne(); | |
_produce.Reset(); |
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
// Calculates the cost of an Azure Container Instances container | |
// Using the default Linux container with 1 vCpu and 1.5GB vRAM | |
[<Measure>] type gb | |
[<Measure>] type cores | |
[<Measure>] type sec | |
[<Measure>] type hour | |
[<Measure>] type pound | |
[<Measure>] type gbPerSec = gb/sec |