Skip to content

Instantly share code, notes, and snippets.

View slang25's full-sized avatar
🙂

Stuart Lang slang25

🙂
View GitHub Profile
@slang25
slang25 / mem.cs
Last active September 28, 2018 09:53 — forked from ayende/mem.cs
class Program
{
static ManualResetEvent _produce = new ManualResetEvent(false);
static ManualResetEvent _consume = new ManualResetEvent(false);
private static void Run()
{
while (true)
{
_produce.WaitOne();
_produce.Reset();
@slang25
slang25 / CalculateACICosts.fsx
Last active May 6, 2018 16:19 — forked from lukemerrett/CalculateACICosts.fsx
Calculates the cost of an Azure Container Instances container
// 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