Skip to content

Instantly share code, notes, and snippets.

@alexanderfast
alexanderfast / trimwhitespace.py
Created August 19, 2016 14:55
Python script to trim trailing white space recursively for all files matching a specified file mask regex.
#
# Usage:
#
# python trimwhitespace.py . .*\.js$
#
import argparse
import os
import re
parser = argparse.ArgumentParser(description='Trims trailing whitespace.')
using System;
using System.Reflection;
using Changelog.Annotations;
using Changelog.Properties;
namespace Namespace
{
public class SettingsViewModelBase : ViewModelBase, ICloneable
{
public void Load()
@alexanderfast
alexanderfast / rake.log
Created February 12, 2013 15:47
When running: git clean -f ; git reset --hard ; rake
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.296]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 2013-02-12 16:40:45.
Project "C:\dev\commandline\CommandLine.sln" on node 1 (Build target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Project "C:\dev\commandline\CommandLine.sln" (1) is building "C:\dev\commandline\src\libcmdline\CommandLine.csproj" (2) on node 1 (default targets).
PrepareForBuild:
@alexanderfast
alexanderfast / ResourcedOptionAttribute.cs
Created December 3, 2012 13:18
ResourcedOptionAttribute
internal class ResourcedOptionAttribute : OptionAttribute
{
private string helpTextKey;
public ResourcedOptionAttribute(string shortName, string longName)
: base(shortName, longName)
{
}
@alexanderfast
alexanderfast / issue15.cs
Created November 30, 2012 14:30
CommandLine issue 15
using System;
using CommandLine;
using CommandLine.Text;
namespace ConsoleApplication1
{
class Program
{
private class Options : CommandLineOptionsBase