Skip to content

Instantly share code, notes, and snippets.

namespace A {
template<typename T>
class B {
T t;
static const char* name;
};
#ifdef WITH_DECLARATION
template<> const char* B<int>::name;
#endif
}
template<template<class> class T> class A {};
template<class U> class B {};
template<template<class> class T>
void fun(const A<T>& a) {}
template void fun(const A<B>& a);
@wildmichael
wildmichael / convertBibDeskLinks.m
Created October 28, 2010 15:07
Converts the Bdsk-File-X base64 encoded aliases created by BibDesk to normal file paths
@wildmichael
wildmichael / LiteralBlock.asciidoc
Created February 29, 2012 07:40
Test case for AsciiDoc literal block rendering

Literal Block Test

This is a snippet:

#include <stdio.h>
int main()
{
  puts("Hello World!\n");
@wildmichael
wildmichael / brief.cls
Created June 28, 2012 14:43
Diacritics problem
%%
%% This is file `brief.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% brief.dtx (with options: `class')
%%
%% This is a generated file.
%% Copyright (C) 2012 by Michael Wild
@wildmichael
wildmichael / setup.py
Last active July 4, 2018 17:28
to_python converter sample to demonstrate the make_getter problem.
import os, sys
from distutils.core import setup, Extension
setup(name='stringTest',
ext_modules = [
Extension('_string', [
'string.cpp'
],
include_dirs = [
'/usr/include/qt4'
@wildmichael
wildmichael / README.md
Created March 1, 2013 11:24
superscript test

This is some superscript text.

@wildmichael
wildmichael / Coverage.targets
Created September 5, 2013 09:06
Run coverage analysis from MSBuild
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets="Report"
ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- versions of the required tools. ADJUST TO ACTUAL VERSION NUMBERS! -->
<xUnitVersion>1.9.2</xUnitVersion>
@wildmichael
wildmichael / .gitattributes
Last active January 27, 2016 10:05
WPF DataGridRow Validation Test
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.