Skip to content

Instantly share code, notes, and snippets.

View serialseb's full-sized avatar

Sebastien Lambla serialseb

View GitHub Profile
@serialseb
serialseb / stuff.json
Created September 13, 2019 13:34
stuff to do in prognet with context
{
"@context":{
"dothework": "here"
},
"id": 1,
"node_id": "MDU6SXNzdWUx",
"url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
"number": 1347,
"state": "open",
"title": "Found a bug",

Keybase proof

I hereby claim:

  • I am serialseb on github.
  • I am serialseb (https://keybase.io/serialseb) on keybase.
  • I have a public key whose fingerprint is 6D5D EE59 E8E6 43EA ECFD FB23 C2E7 4447 91B7 A209

To claim this, I am signing this object:

@serialseb
serialseb / !vest-specifications
Last active January 25, 2016 13:45
vest-specifications
examples of VEST specifications
@serialseb
serialseb / 2016-01-20-my-post.md
Last active January 20, 2016 18:10
master-templates
title layout
My post
post

Some content here

@serialseb
serialseb / console.cs
Created December 4, 2014 09:01
Read key by key and whole strings in Console
static void Main(string[] args)
{
bool run = true;
var sb = new StringBuilder();
do
{
var key = Console.ReadKey();
if (key.Key == ConsoleKey.UpArrow) run = false;
else if(key.Key == ConsoleKey.Backspace)
using System;
using System.Globalization;
using System.Linq;
using CTM.Common.PafAddress;
using CTM.Home.Common.Domain;
using CTM.Home.Common.ValueTypes;
using CTM.Home.Domain.Concepts;
using CTM.Home.Domain.Events;
using CTM.Home.ViewModels;
using TestNewProjections;
@serialseb
serialseb / projections.cs
Last active August 29, 2015 14:03
Projecting things
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using MongoDB.Bson.Serialization.Attributes;
public class cappedqueue : cappedcontext
{
static object[] examples =
{
new { members = new[] { 1, 2, 3, 4 }, cap = 3, expected = new[] { 2, 3, 4 } }
};
public cappedqueue(int[] members, int cap)
{
@serialseb
serialseb / owinfx
Last active August 29, 2015 14:02
owin stuff
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Nancy;
using Nancy.Owin;
using Nowin;
@serialseb
serialseb / Stuff.cs
Created May 16, 2014 12:40
A more compositional approach
public class Wireup
{
public void DoWireup()
{
var identity = new IdentityFormatter();
var stringFormat = new FormattingStringFormatter();
// that would normally get registered in your container or what not.
Selectors = new[]
{