Skip to content

Instantly share code, notes, and snippets.

View MatthewSteeples's full-sized avatar

Matthew Steeples MatthewSteeples

View GitHub Profile
@MatthewSteeples
MatthewSteeples / gist:4279019
Created December 13, 2012 19:26
Recursively update NuGet executable
gci -recurse -filter nuget.exe | ForEach { start-process $_.FullName -ArgumentList "update -self" }
@MatthewSteeples
MatthewSteeples / EnumerableToTextConverter.cs
Created October 17, 2012 13:10
ValueConverter to convert an IEnumerable of anything into a string with custom separator
using System;
using System.Collections;
using System.Linq;
using System.Windows.Data;
namespace LedgerscopeApplication.ValueConverters
{
public class EnumerableToTextConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
@MatthewSteeples
MatthewSteeples / gist:d47f2ea58f63cdab1e24
Created February 13, 2015 20:55
Demonstration of Capability propagation
[RequiresCapability("SQL")]
public class TestBaseClass
{
[TestMethod]
public void RunTest1()
{
}
}
[RequiresCapability("ATS")]
@model DateTime?
@{
string name = ViewData.TemplateInfo.HtmlFieldPrefix;
string id = name.Replace(".", "_");
bool monthEndOnly = ViewBag.MonthEndOnly ?? false;
}
@Html.TextBoxFor(model => model, new { style = "DatePicker" })
<i class="icon-calendar"></i>