Skip to content

Instantly share code, notes, and snippets.


Toby Smith tobysmith568

View GitHub Profile
LGM-AdrianHum / ListBoxStyle.xaml
Created Oct 11, 2017
Changing WPF Listbox SelectedItem text color and highlight/background Color
View ListBoxStyle.xaml
<Window x:Class="ListBoxStyle.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Style x:Key="_ListBoxItemStyle" TargetType="ListBoxItem">
<Setter Property="Template">
<ControlTemplate TargetType="ListBoxItem">
7Pass / MoqExtensions.cs
Last active Sep 5, 2019
Extension methods to quickly ignore arguments without repeating It.IsAny<>()
View MoqExtensions.cs
using System;
using System.Linq.Expressions;
using Moq.Language.Flow;
namespace Moq
public static class MoqExtensions
public static ISetup<T, TResult> SetupIgnoreArgs<T, TResult>(this Mock<T> mock,
Expression<Func<T, TResult>> expression)
ScottPhillips / .htaccess
Created Feb 2, 2012
Common .htaccess Redirects
View .htaccess
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php
#Redirect an entire site:
Redirect 301 /
#Redirect an entire site to a sub folder
Redirect 301 /
You can’t perform that action at this time.