Skip to content

Instantly share code, notes, and snippets.

View drayde's full-sized avatar

Andreas Kahler drayde

View GitHub Profile
@drayde
drayde / b2_dxf_outlines.py
Created June 15, 2015 09:15
b2_dxf_outlines.py from "Better better DXF output" fixed to run with Inkscape 0.91
#!/usr/bin/env python
'''
Copyright (C) 2005,2007 Aaron Spike, aaron@ekips.org
- template dxf_outlines.dxf added Feb 2008 by Alvin Penner, penner@vaxxine.com
- layers, transformation, flattening added April 2008 by Bob Cook, bob@bobcookdev.com
- improved layering support added Feb 2009 by T. R. Gipson, drmn4ea at google mail
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
@drayde
drayde / RibbonControl template
Created November 17, 2014 16:17
Template for WPF RibbonControl template (from 4.5 framework)
<ControlTemplate x:Key="ribbonTemplate" TargetType="Ribbon" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mwt="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" xmlns:swcrp="clr-namespace:System.Windows.Controls.Ribbon.Primitives;assembly=System.Windows.Controls.Ribbon">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />