- 👍 I like this. Use this to motivate people. Don’t overuse it, but certainly point out if you like something.
- ❓ I have a concrete question. There is nothing here to be changed yet.
- ❌ Here is an actual problem. Please change this according to my suggestion. It might be a bug or a strict code style fix.
- 🔧 Here is an idea/suggestion. I think it would improve things, but feel free to disagree :)
- 🙃 This is a nitpick. Feel free to change of leave it.
- 🤔 This might be wrong. Let’s talk about it, maybe we can come up with a better solution
- 🤡 Here is a problem independent from your work. It would be nice if we would open up a ticket and discuss about that.
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net40</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.2"> | |
<PrivateAssets>all</PrivateAssets> | |
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |
</PackageReference> |
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
<wpf:ResourceDictionary xml:space="preserve" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:s="clr-namespace:System;assembly=mscorlib" | |
xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" | |
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=E53EF07BEAF6964C83AD78E1B75E3837/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=E53EF07BEAF6964C83AD78E1B75E3837/Shortcut/@EntryValue">moqq</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=E53EF07BEAF6964C83AD78E1B75E3837/Description/@EntryValue">Moq mock</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=E53EF07BEAF6964C83AD78E1B75E3837/Text/@EntryValue">Mock<$interfaceToMock$> mock$interfaceToMock$ = new Mock<$interfaceToMoc |
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
$huidigTijdstipFilenameSafe = $(get-date -f yyyyMMddTHHmmssZ); | |
# Output folders aanmaken | |
New-Item -ItemType "Directory" C:\temp\AdfsConfigDump\"$env:computername" -Force | |
$stampedFolder = New-Item -ItemType "Directory" "C:\temp\AdfsConfigDump\$env:computername\$huidigTijdstipFilenameSafe" -Force | |
Remove-Item C:\temp\AdfsConfigDump\"$env:computername"\LATEST -Recurse -Force -ErrorAction Ignore | |
$latestFolder = New-Item -ItemType "Directory" "C:\temp\AdfsConfigDump\$env:computername\LATEST" | |
Get-AdfsApplicationGroup | ConvertTo-Json -Depth 10 | Out-File "$stampedFolder\alles.json" |
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
const string server = "http://srvoctopus"; | |
const string apiKey = "API-keyhier"; | |
var endpoint = new OctopusServerEndpoint(server, apiKey); | |
using (var client = await OctopusAsyncClient.Create(endpoint)) | |
{ | |
var repository = client.CreateRepository(); | |
var allProjects = await repository.Projects.GetAll(); |
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 class DatabaseDeleter | |
{ | |
private readonly ISessionFactory _configuration; | |
private static readonly string[] _ignoredTables = new[] { "sysdiagrams", "usd_AppliedDatabaseScript" }; | |
private static string[] _tablesToDelete; | |
private static string _deleteSql; | |
private static object _lockObj = new object(); | |
private static bool _initialized; | |
public DatabaseDeleter(ISessionFactory sessionSource) |
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
<# | |
.Synopsis | |
Returns the install .NET Framework versions. | |
.Description | |
The script looks through the registry using the notes from the below | |
MSDN links to determine which versions of .NET are installed. |
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 core.editor notepad.exe | |
git config -–global -e | |
en dan ergens | |
[core] | |
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession –noPlugin |
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 interface IAsyncRunner | |
{ | |
void Run<T>(Action<T> action); | |
} | |
public class AsyncRunner : IAsyncRunner | |
{ | |
public ILifetimeScope LifetimeScope { get; set; } | |
public AsyncRunner(ILifetimeScope lifetimeScope) |
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
/// <remarks>Part of Microsoft.AspNet.Web.Optimization.1.1.3, forked to ignore data-uri</remarks> | |
public class CssRewriteUrlTransformIgnoringDataUri : IItemTransform | |
{ | |
internal static string RebaseUrlToAbsolute(string baseUrl, string url) | |
{ | |
if (string.IsNullOrWhiteSpace(url) || string.IsNullOrWhiteSpace(baseUrl) || url.StartsWith("/", StringComparison.OrdinalIgnoreCase)) | |
return url; | |
if (!baseUrl.EndsWith("/", StringComparison.OrdinalIgnoreCase)) | |
baseUrl = baseUrl + "/"; | |
return VirtualPathUtility.ToAbsolute(baseUrl + url); |
NewerOlder