View RLE0DifEncoder.cpp
#include "RLE0DifEncoder.h"
#include <cassert>
#include <stdint.h>
#include <memory>
#include <stdexcept>
namespace matise {
namespace journal {
View TestClrMD.cs
// TODO: encapsulate runtime session, store heap, common general purpose types, stats, etc.
static ClrRuntime _runtime;
void Main()
DataTarget _target = DataTarget.LoadCrashDump("C:\\Temp\\MEM.DMP");
var clrVer = _target.ClrVersions[0];
string dac = clrVer.TryGetDacLocation();
View gist:fb115ffdaa4e9bbd66f1c68b60bd2d3b
#ifndef UNICODE
#define UNICODE
#include <winsock2.h>
#include <Ws2tcpip.h>
#include <stdio.h>
View asynch-echo-inc.c
#undef UNICODE
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
View InheritGenericClass.cs
using System;
public class GenericClass<T> {
public virtual void Method (T value) {
Console.WriteLine("GenericClass<{0}>.Method({1})", typeof(T), value);
public class MyClass<T> : GenericClass<T> {
public override void Method (T value) {
View getopt.c
/* Getopt for GNU.
NOTE: getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to
before changing it!
Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
#!/usr/bin/env python3
"""Notes on `arrow` library.
* inconsitent (fixed)
>>> a = arrow.get(datetime(2012, 4, 7, 0, 30, 00), 'America/New_York')
>>> a.datetime.tzname() == a.tzinfo.tzname(a.datetime) # fixed
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
View FindConflictingReferences.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using NUnit.Framework;
namespace MyProject
View gist:2e8282ef7233e9467d89
# In myapp.tasks
from celery import Celery
celery = Celery()
Task = celery.create_task_cls()
class MyBaseTask(Task):
abstract = True
# ...