Skip to content

Instantly share code, notes, and snippets.

View martijnburgers's full-sized avatar

Martijn Burgers martijnburgers

View GitHub Profile
@martijnburgers
martijnburgers / codedom1.cs
Last active December 30, 2015 14:49
playing around with the CodeDOM #1
class Program
{
static void Main()
{
//R = fn(A + B) / C
var addExpression = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression("A"),
CodeBinaryOperatorType.Add,
new CodeVariableReferenceExpression("B"));
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web.Mvc;
using Delta.Common.Reflection;
namespace CustomMap
{
public class ServiceDataStatistic
@martijnburgers
martijnburgers / codecoverage.runsettings
Created April 3, 2013 11:13
Code Coverage Run Settings For VS2012
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Include>
@martijnburgers
martijnburgers / jqgrid.mabu.formatters.js
Last active January 17, 2017 09:29
Custom formatters for jqGrid with onclick handlers
/*
* jqGrid - Custom Formatters (mabuCheckboxFormatter, mabuButtonFormatter)
*
* The event handler will receive two arguments:
* $(this) -- jQuery object from the control raising the event.
* rowId -- The row id (this could be the row index, or the id of the row if key is specified.)
*
*
* If the event handler is a real function, method invokers for that function are created on $.fn.fmatter.invokers.
* They are created once, if you need to reset them for whatever reason you will have to do that yourself.
; Recommended for performance and compatibility with future AutoHotkey releases.
#NoEnv
; Recommended for catching common errors.
#Warn
; There's no reason to run this script more than once
#SingleInstance force
;; memo hotkey shortcuts
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":