This file contains hidden or 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
for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d" |
This file contains hidden or 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 Xamarin.Forms; | |
namespace MyProject.Controls | |
{ | |
public class HtmlLabel : Label | |
{ | |
} | |
} |
The diff tool integrated with Visual Studio has been improving with every version. I still prefer dedicated diff/merge tools for the job, however, and P4Merge is my favorite. This small guide describes how to properly integrate P4Merge with Visual Studio 2015.
Note that this only applies when using TFS. If you use git, Visual Studio will use the diff/merge tools configured with git.
The easiest method of installing P4Merge on your computer is with Chocolatey:
This file contains hidden or 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
====== Test cases for parsing ====== | |
_ _ _ _ _ _ _ _ _ | |
| || || || || || || || || | | |
|_||_||_||_||_||_||_||_||_| | |
=> 000000000 | |
| | | | | | | | | | |
| | | | | | | | | | |
This file contains hidden or 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
ConventionManager.Singularize = Singularize(ConventionManager.Singularize); | |
// --------- | |
private Func<string, string> Singularize(Func<string, string> singularize) | |
{ | |
var singularizeMap = new Dictionary<string, string> | |
{ | |
{ "Statuses", "Status" } | |
}; |
This file contains hidden or 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
function Get-Calendar { | |
<# | |
.SYNOPSIS | |
Prints a calendar for the provided month and year | |
.DESCRIPTION | |
Provided with a month number and a year, prints a month calendar with week starting on monday. | |
.NOTES | |
Author : Tormod Fjeldskår | |
.EXAMPLE | |
C:\PS> Get-Calendar 2 2016 |
This file contains hidden or 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
# Set up Windows | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions | |
# Utilities | |
cinst fiddler4 | |
cinst 7zip | |
cinst GoogleChrome | |
cinst putty | |
cinst baretail | |
cinst paint.net |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Lenovo\SmartKey\Application\Row\Function\Microsoft Visual Studio 2013] | |
"AppPath"="C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\devenv.exe" | |
[HKEY_CURRENT_USER\Software\Lenovo\SmartKey\Application\Row\Function\Microsoft Visual Studio 2012] | |
"AppPath"="C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\devenv.exe" |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] | |
"NoAutoRebootWithLoggedOnUsers"=dword:00000001 |