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
{ | |
"name": "sass-only-webpack-example", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "webpack --config webpack.config.js" | |
}, | |
"author": "", |
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
USE [WW2_DEV] | |
GO | |
/****** Object: StoredProcedure [dbo].[sp_DynamicDBSnapshotCreator] Script Date: 20/05/2021 8:42:18 AM ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
/******************************************************************************************************************************************* | |
Dynamically Create SQL Server Database Snapshots v1.0 (2016-04-11) |
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 CollectionViewHeightBehavior : Behavior<CollectionView> | |
{ | |
bool hasHeightChanged = false; | |
public CollectionView CollectionViewObject | |
{ | |
get; | |
private set; | |
} | |
protected override void OnAttachedTo(CollectionView bindable) | |
{ |
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 Execute SQL Script in order | |
.Parameter Server Provide SQL Server Name | |
.Parameter DatabaseName Provide database name | |
.Parameter UserName Provide a windows user name or SQL Server user name | |
.Parameter Password Provide password as a secure string | |
.Parameter ScriptPath Provide the path where all the SQL scripts are located | |
.Parameter ContineOnException Enable this switch to continue even if one of the script failed to execute | |
.EXAMPLE | |
$SecurePass = ConvertTo-SecureString "MyPassword" |
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
param( | |
[parameter(Mandatory=$True)] | |
[string] $csprojFile | |
) | |
# to invoke from visual studio as a post-build event: | |
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command incrementNugetPackageBuildNumber.ps1 -csprojFile "$(ProjectPath)"; | |
$projXml = new-object xml | |
$projXml.Load($csprojFile) | |
[string]$versionNumberString = $projXml.Project.PropertyGroup.Version |
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 CodeDomExtensionMethods { | |
/// <summary> | |
/// Adds a get property that returns a default value. | |
/// </summary> | |
/// <param name="type"></param> | |
/// <param name="typeName"></param> | |
/// <param name="propertyName"></param> | |
/// <param name="attrs"></param> | |
/// <returns></returns> | |
public static CodeMemberProperty AddDefaultGetter(this CodeTypeDeclaration type, string typeName, |
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 ExtensionMethods | |
{ | |
/// <summary> | |
/// Converts an <see cref="IEnumerable{T}"/> of <see cref="string"/>s to a flat string, delimited by a delimiter string. | |
/// </summary> | |
/// <param name="stringEnumerable"></param> | |
/// <param name="delimiter">Defaults to comma with a space (, )</param> | |
/// <param name="openEncloseString">Enclose each string in the IEnumerable inside two other strings. e.g. an apostrophe will produce: ('a', 'b', 'c')</param> | |
/// <param name="closeEncloseString"></param> | |
/// <returns></returns> |
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
wmic shadowcopy call create volume='C:\' |