Skip to content

Instantly share code, notes, and snippets.

View Hades32's full-sized avatar
😬

Martin Rauscher Hades32

😬
View GitHub Profile
@Hades32
Hades32 / registry_test.exs
Created September 4, 2014 14:15
Problem with GenEvent.stream vs. GenEvent.add_handler
defmodule KV.RegistryTest do
use ExUnit.Case, async: true
alias KV.Registry, as: Reg
# test helper module
defmodule Forwarder do
use GenEvent
def handle_event(event, parent) do
send parent, event
@Hades32
Hades32 / gist:1145013
Created August 14, 2011 15:59
Export (all) Visio pages as PDF
Sub expCurrent()
Call Application.ActiveDocument.ExportAsFixedFormat(visFixedFormatPDF, ActiveDocument.Path & "\Images\" & Application.ActivePage.Name & ".pdf", visDocExIntentPrint, visPrintCurrentPage)
End Sub
Sub expAll()
Dim p As Page
@Hades32
Hades32 / PixelImageConverer.cs
Created January 15, 2011 16:57
How to get Nearest Neighbor image scaling working in Wilverlight or WP7
using System;
using System.Linq;
using System.Windows.Data;
using System.Windows.Media.Imaging;
namespace WPNearestNeighbor
{
public class PixelImageConverter : IValueConverter
{
/// <summary>