This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@base--line-height: 1.2; | |
@base--font-size: 16px; | |
.font-size(@font-size; @line-height) when(@line-height = true){ | |
line-height: ceil(@font-size / @base--line-height) * (@base--line-height / @font-size); | |
.font-size(@font-size); | |
} | |
.font-size(@font-size; @line-height:false) { | |
font-size: @font-size; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
'use strict'; | |
grunt.loadNpmTasks('grunt-sass'); | |
grunt.loadNpmTasks('grunt-autoprefixer'); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Sass | |
sass: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Chocolatey | |
iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall')) | |
# install browsers | |
cinst GoogleChrome | |
cinst Firefox | |
cinst GoogleChrome.Canary | |
cinst Opera | |
# cinst ie11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[diff] | |
tool = DiffMerge | |
[difftool "DiffMerge"] | |
cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' "$LOCAL" "$REMOTE" | |
[merge] | |
tool = DiffMerge | |
[mergetool "DiffMerge"] | |
cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' -merge -result="$PWD/$MERGED" "$PWD/$LOCAL" "$PWD/$BASE" "$PWD/$REMOTE" | |
trustExitCode = true | |
[mergetool] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// truncate string at the last full word before char limit and appends ... | |
/// </summary> | |
/// <param name="input">The input.</param> | |
/// <param name="length">The string length.</param> | |
/// <returns>The truncated string.</returns> | |
public static string TruncateAtWord(this string input, int length) | |
{ | |
if (input == null || input.Length < length) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Value converter group. | |
/// Takes multiple value converters. | |
/// </summary> | |
public class ValueConverterGroup : List<IValueConverter>, IValueConverter | |
{ | |
/// <summary> | |
/// Modifies the source data before passing it to the target for display in the UI. | |
/// </summary> | |
/// <param name="value">The source data being passed to the target.</param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Extension methods for <see cref="DependencyObject"/>. | |
/// </summary> | |
public static class DependancyObjectExtensions | |
{ | |
/// <summary> | |
/// Gets the visual parent of the specified type of the child. | |
/// </summary> | |
/// <typeparam name="T">The type.</typeparam> | |
/// <param name="child">The child.</param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tfpt unshelve /migrate /source:"$/ProjectName/Branch" /target:"$/ProjectName/Targetbranch" "My Shelveset Name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CascadingAuthenticationState> | |
<Router AppAssembly="typeof(App).Assembly"> | |
<Found Context="routeData"> | |
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)"> | |
<Authorizing> | |
</Authorizing> | |
<NotAuthorized> | |
<RedirectToLogin /> | |
</NotAuthorized> | |
</AuthorizeRouteView> |