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
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Query; | |
using Microsoft.EntityFrameworkCore.Query.SqlExpressions; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Linq; | |
using System.Reflection; | |
namespace ConsoleApp1 |
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.8.0</version> | |
<configuration> | |
<release>11</release> | |
</configuration> | |
</plugin> |
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
git config --global alias.a 'add -A' | |
git config --global alias.b 'branch' | |
git config --global alias.c 'checkout' | |
git config --global alias.cb 'checkout -b' | |
git config --global alias.f 'fetch' | |
git config --global alias.l 'log --pretty=oneline --abbrev-commit' | |
git config --global alias.r 'rebase --interactive HEAD~10' | |
git config --global alias.s '-p status' | |
# primary workflow related aliases |
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
// Presented by Tim Rayburn | |
// VP of Consulting for Improving | |
// http://improving.com | |
// [email protected] | |
console.log('Started'); |
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
if ((Get-Process -Name slack -ErrorAction SilentlyContinue) -ne $null) { | |
$totalMemory = gwmi Win32_OperatingSystem | select -ExpandProperty TotalVisibleMemorySize | |
$slackMemory = (get-process slack | measure -Sum WS | select -ExpandProperty Sum) / 1024 | |
$slackExecutable = (Get-Process -Name slack | select -First 1).path | |
if (($slackMemory / $totalMemory) -ge .1) { | |
Get-Process slack | Stop-Process | |
Start-Process $slackExecutable | |
} | |
} |
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
$excludes = @("node_modules", "packages", ".git", ".vs") | |
function Get-SolutionFiles() { | |
( | |
@(Get-ChildItem *.sln) + | |
@(Get-ChildItem -Directory | ? { $excludes -notcontains $_.Name } | % { Get-ChildItem $_ -Recurse -Filter *.sln }) | |
) | |
} | |
function Analyze-Solutions() { |
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
$excludes = @("node_modules", "packages", ".git", ".vs") | |
function Get-SolutionFiles() { | |
( | |
@(Get-ChildItem *.sln) + | |
@(Get-ChildItem -Directory | ? { $excludes -notcontains $_.Name } | % { Get-ChildItem $_ -Recurse -Filter *.sln }) | |
) | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using NUnit.Framework; | |
namespace Example.Tests.AppConventions | |
{ | |
[TestFixture] |
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
public static class ObjectExtensions | |
{ | |
/// <summary> | |
/// Null-safe member access helper. | |
/// Invokes the given accessor if the target object is not <c>null</c>. | |
/// </summary> | |
/// <typeparam name="T"> | |
/// The type of the target object. | |
/// </typeparam> | |
/// <typeparam name="TResult"> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication21 | |
{ | |
class Program | |
{ |
NewerOlder