Skip to content

Instantly share code, notes, and snippets.

Zac Charles zaccharles

Block or report user

Report or block zaccharles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zaccharles
zaccharles / OrderCreated.cs
Created Feb 26, 2019
OrderCreatedContracts
View OrderCreated.cs
using System;
using JustEat.OrderHolder.Messages.OrderCreatedContracts;
using JustSaying.Models;
namespace JustEat.OrderHolder.Messages
{
public class OrderCreated : Message
{
public string OrderId { get; set; }
public string Source { get; set; }
@zaccharles
zaccharles / ThirdPartyNotices.txt
Created Feb 19, 2019
vsdbg 16.0.11220.2 licenses
View ThirdPartyNotices.txt
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
Do Not Translate or Localize
Microsoft .NET Core Debugger Components incorporates components from the projects listed below. Microsoft licenses these components under the Microsoft .NET Core Debugger Components license terms, except as noted. The original copyright notices and the licenses under which Microsoft received such components are set forth below for informational purposes. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
1. .NET Compiler Platform ("Roslyn") (http://roslyn.codeplex.com/)
2. CoreCLR (https://github.com/dotnet/coreclr)
3. CoreFX (https://github.com/dotnet/corefx)
@zaccharles
zaccharles / launch.json
Last active Feb 17, 2019
LambdaRemoteDebug - Example launch.json
View launch.json
{
"version": "0.2.0",
"languageMappings": {
"C#": {
"languageId": "3F5162F8-07C6-11D3-9053-00C04FA302A1",
"extensions": [ "*" ]
}
},
"exceptionCategoryMappings": {
"CLR": "449EC4CC-30D2-4032-9256-EE18EB41B62B",
@zaccharles
zaccharles / Context Object Timeout.csv
Last active Jan 12, 2019
AWS Lambda Context Object and Deadline
View Context Object Timeout.csv
Language Deadline Timestamp Remaining Time Function
Node.js - getRemainingTimeInMillis()
Python deadline_ms get_remaining_time_in_millis()
Java - getRemainingTimeInMillis()
Go Deadline() -
C# - RemainingTime
PowerShell - RemainingTime
Ruby deadline_ms get_remaining_time_in_millis()
@zaccharles
zaccharles / Handler.cs
Created Jan 12, 2019
Files survive when your handler doesn't
View Handler.cs
public class Handler
{
private Guid _variableGuid;
public Handler()
{
_variableGuid = Guid.NewGuid();
Console.WriteLine($"Constructor: {_variableGuid}");
}
View Background method.cs
private void Background()
{
var count = 0;
var stopwatch = new System.Diagnostics.Stopwatch();
while(true)
{
stopwatch.Restart();
Thread.Sleep(1000);
Console.WriteLine($"{_id} / {count} / {stopwatch.ElapsedMilliseconds}");
@zaccharles
zaccharles / Handler.cs
Last active Jan 12, 2019
blog-warm-lambdas
View Handler.cs
public class Handler
{
private Guid _id;
public Handler()
{
_id = Guid.NewGuid();
new Thread(Background).Start();
}
View keybase.md

Keybase proof

I hereby claim:

  • I am zaccharles on github.
  • I am zaccharles (https://keybase.io/zaccharles) on keybase.
  • I have a public key whose fingerprint is CEEF BBBA BDAC D613 BACD 6949 1153 AEDD 86D0 BD96

To claim this, I am signing this object:

You can’t perform that action at this time.