Skip to content

Instantly share code, notes, and snippets.

View joergbattermann's full-sized avatar
🚵
Probably roaming or building. More likely roaming than building tbh.

Jörg Battermann joergbattermann

🚵
Probably roaming or building. More likely roaming than building tbh.
View GitHub Profile
@joergbattermann
joergbattermann / my_vs2017_son_of_obsidian_with_resharper.vssettings
Last active September 15, 2019 02:16
My Son of Obsidian VS2017 + Resharper (2017.2) Font & Colors settings
<UserSettings>
<ApplicationIdentity version="15.0"/>
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/>
</ToolsOptions>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package">
<PropertyValue name="Version">2</PropertyValue>
<FontsAndColors Version="2.0">
<Theme Id="{A4D6A176-B948-4B29-8C66-53C97A1ED7D0}"/>
@joergbattermann
joergbattermann / gist:1717049
Created February 1, 2012 14:00
Open TFS WorkItem within a running Visual Studio instance
private static DocumentService _workItemDocumentService;
private static void OpenWorkItem(TeamFoundationServer tfsServer, int workItemId)
{
if(_workItemDocumentService == null)
_workItemDocumentService = (DocumentService)DTE2.DTE.GetObject("Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.DocumentService");
// you can also use _workItemDocumentService = (DocumentService)Package.GetGlobalService(typeof(DocumentService));
IWorkItemDocument workItemDocument = workItemDocumentService.GetWorkItem(activeTFS, workItemId, this);
@joergbattermann
joergbattermann / TextParser.cs
Created February 7, 2011 13:30
Underlying text parser (c) Jonathan Wood
using System;
using System.Linq;
using System.Threading;
namespace WordEnumerable
{
/// <summary>
/// TextParser was taken mostly (some minor refactoring took place only) from
/// <see cref="http://www.blackbeltcoder.com/Articles/strings/a-text-parsing-helper-class">Jonathan Wood's article on blackbeltcoder.com</see>.
/// All (c) etc in this class are his.
@joergbattermann
joergbattermann / WordEnumerator.cs
Created February 7, 2011 13:29
IEnumerator<string> implementation
using System;
using System.Collections;
using System.Collections.Generic;
namespace WordEnumerable
{
internal class WordEnumerator : IEnumerator<string>
{
private readonly TextParser _textParser;
private int _currentStartPosition;
@joergbattermann
joergbattermann / WordEnumerable.cs
Created February 7, 2011 13:28
WordEnumerable.cs
using System.Collections;
using System.Collections.Generic;
namespace WordEnumerable
{
public class WordEnumerable : IEnumerable<string>
{
/// <summary>
/// Stores initial text for GetEnumerator() / enumerator re-creation
/// </summary>