Skip to content

Instantly share code, notes, and snippets.

View esride-apf's full-sized avatar

Marko Apfel esride-apf

  • Geocom Informatik GmbH
  • Germany, Bavaria
View GitHub Profile
Initially I saw this on this web site
http://h2ik.co/2011/03/having-fun-with-git-subtree/
And with google i came up to this
https://github.com/blog/122-embedded-gists
And now it is time to try this for my own
https://gist.github.com/2967475
Customizing your embedded gists with CSS
@esride-apf
esride-apf / gist:1931682
Created February 28, 2012 10:02
log4net.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<!-- Define some output appenders -->
<appender name="RollingLogFileAppenderDebug" type="log4net.Appender.RollingFileAppender">
@esride-apf
esride-apf / SimpleProgram.linq
Created December 28, 2011 17:15
LINQPad Samples
void Main()
{
var listOfI = GetInts();
foreach (var i in listOfI)
{
Console.WriteLine(i);
}
Console.WriteLine("******");
Console.WriteLine("jetzt 1-stellige");
@esride-apf
esride-apf / gist:1442730
Created December 7, 2011 13:06
NAnt stuff for ArcGIS Desktop AddIns
<property name="UserAddinDir" value="${environment::get-folder-path('USERPROFILE')}\Documents\ArcGIS\AddIns\Desktop10.0\{288DE52A-7E39-4D4F-BC18-8E3AB07FB5BC}" />
<property name="UserExtractedAddinDir" value="${environment::get-folder-path('LocalApplicationData')}\ESRI\Desktop10.0\AssemblyCache\{AFBE0B57-7391-D0A3-D63D-3F31CFB78FAE}" />
<target name="clean" description="remove all generated files">
<delete dir="${UserAddinDir}" />
<delete dir="${UserExtractedAddinDir}" />
</target>
@esride-apf
esride-apf / nuget.config
Created August 13, 2011 08:31
nuget.config for our solutions
<settings>
<repositoryPath>..\..\lib\Nuget-Packages</repositoryPath>
</settings>
@esride-apf
esride-apf / EsriDE.FxCop.targets
Created August 13, 2011 08:11
Sample MSBuild target to run static codeanalysis tool FxCop
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildDependsOn>$(BuildDependsOn);FxCop</BuildDependsOn>
<RebuildDependsOn>$(RebuildDependsOn);FxCop</RebuildDependsOn>
</PropertyGroup>
<Target Name="FxCop">
<Exec
Command="&quot;$(TargetDir)..\tools\FxCop\FxCopCmd.exe&quot; /file:&quot;$(TargetPath)&quot; /project:&quot;$(TargetDir)..\src\BuildOnly.FxCop&quot; /directory:&quot;$(TargetDir)..\lib\Microsoft&quot; /dictionary:&quot;$(TargetDir)..\src\FxCop.CustomDictionary.xml&quot; /out:&quot;$(TargetDir)$(ProjectName).FxCopReport.xml&quot; /console /forceoutput /ignoregeneratedcode">
</Exec>
@esride-apf
esride-apf / pde-194.csproj
Created August 13, 2011 07:52
Additional lines for our pde-194.csproj files
<!-- in der ItemGroup für den Projekt-Content-->
<!-- gemeinsame AssemblyInfo.Commons im zentralen src-Folder einlinken -->
<Compile Include="..\..\AssemblyInfo.Common.cs">
<Link>Properties\AssemblyInfo.Common.cs</Link>
</Compile>
<!-- in der ItemGroup für den Projekt-Content-->
<!-- Ressourcen unter den Properties-Folder vorhalten um den eigentlichen Code möglichst clean zu halten -->
<EmbeddedResource Include="Properties\LocalizableResources.resx">
<Generator>ResXFileCodeGenerator</Generator>