Skip to content

Instantly share code, notes, and snippets.

View Hades32's full-sized avatar
😬

Martin Rauscher Hades32

😬
View GitHub Profile
@Hades32
Hades32 / run.sh
Last active August 25, 2017 17:58
Start a docker container with environment variables for external port and IP
#!/bin/bash
#Start a docker container with environment variables for external port and IP
if [ -z $1 ]
then
echo pass in starting port
exit 1
fi
START_PORT=$1
@Hades32
Hades32 / elixir-npp.xml
Created October 14, 2014 18:46
Simple syntax highlighting for Elixir for Notepad++
<NotepadPlus>
<UserLang name="Elixir" ext="ex exs" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@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>