Skip to content

Instantly share code, notes, and snippets.

Get-Content -Path <Path> -Wait -Tail 10
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<!--<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>-->
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
</sectionGroup>
@tobi-tobsen
tobi-tobsen / IronPythonCharCounterExcel.py
Last active May 17, 2021 01:28
IronPython script which retrieves selected cells from an opened excel sheet and figures out the number of occurences for each of the letters used
import clr
# Not sure if the full qualified assembly name is needed - works for me if I omit it:
#clr.AddReferenceByName('Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c')
clr.AddReference("Microsoft.Office.Interop.Excel")
from Microsoft.Office.Interop import Excel
from System.Runtime.InteropServices import Marshal
from collections import Counter
# The following IronPython script finds out how many alphabet-stickers my future wife needs for the wedding place cards
@tobi-tobsen
tobi-tobsen / compiles_net35clientprofile.patch
Created August 30, 2013 12:44
A patch for netmq to compile under 3.5 client profile
diff --git a/src/NetMQ.Tests/NetMQ.Tests.csproj b/src/NetMQ.Tests/NetMQ.Tests.csproj
index 4e9d395..ab4b3dc 100644
--- a/src/NetMQ.Tests/NetMQ.Tests.csproj
+++ b/src/NetMQ.Tests/NetMQ.Tests.csproj
@@ -12,6 +12,8 @@
<AssemblyName>NetMQ.Tests</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
+ <TargetFrameworkProfile>
+ </TargetFrameworkProfile>