Skip to content

Instantly share code, notes, and snippets.

@javinovo
javinovo / tasks.json
Created April 25, 2018 11:57
VSCode tasks for Debug build using CMake and Ninja
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"options": {
// Setup via console the first time:
// mkdir build-ninja
// cmake -G Ninja ../pwt
"cwd": "${workspaceRoot}/../build-ninja"
@javinovo
javinovo / IMessage.cs
Created September 2, 2016 13:56
MessageId, CorrelationId, CausationId
// https://groups.google.com/forum/#!topic/dddcqrs/qGYC6qZEqOI
public interface IMessage
{
Guid Id { get; set; }
/// <summary>
/// Copy of the CorrelationId of the message to whom this message responds to
/// </summary>
Guid CorrelationId { get; set; }
@javinovo
javinovo / typeProvidersExample.fsx
Created July 26, 2016 14:06
Using the World Bank and JSON type providers (from http://www.codemag.com/Article/1605061 )
// Get data
let wb = WorldBankData.GetDataContext()
[<Literal>]
let Path = __SOURCE_DIRECTORY__ + "\example.json"
type Venues = JsonProvider<Path>
let rest = Venues.GetSample()
// Parse venue data