You can use in two ways.
-
Directly as the pre-commit hook in your .git/hooks folder.
-
With Husky by updating your package.json with:
"husky": {
using Microsoft.AspNetCore.Http; | |
using System.Net.Http; | |
namespace Microsoft.AspNetCore.Builder | |
{ | |
/// <summary> | |
/// Extension methods for registering the GraphiQL interface middleware. | |
/// </summary> | |
public static class GraphiQLDeveloperPageExtensions | |
{ |
using System; | |
using Microsoft.AspNetCore.Authentication.JwtBearer; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Internal; | |
using Microsoft.Extensions.Configuration; | |
// ReSharper disable once CheckNamespace | |
namespace Microsoft.Extensions.DependencyInjection | |
{ | |
public static class WebApiServiceCollectionExtensions |
Param( | |
[string]$windowsUser, | |
[string]$sourceRootPath | |
) | |
yarn global add undefender | |
undefender "C:\Program Files\nodejs" | |
if (![string]::IsNullOrWhiteSpace(($windowsUser))) { |
SELECT 'ALTER INDEX ALL ON ' + QUOTENAME(t.Table_Schema) + '.' + QUOTENAME(t.TABLE_NAME) + ' REBUILD PARTITION = ALL WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ' | |
FROM INFORMATION_SCHEMA.TABLES t | |
WHERE t.TABLE_TYPE like 'base%' | |
SELECT dbschemas.[name] as 'Schema', | |
dbtables.[name] as 'Table', | |
dbindexes.[name] as 'Index', | |
indexstats.avg_fragmentation_in_percent, | |
indexstats.page_count | |
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, NULL) AS indexstats |
/* Find Collation of SQL Server Database */ | |
SELECT DATABASEPROPERTYEX('MyDatabase', 'Collation') | |
GO | |
/* Find Collation of SQL Server Database Table Column */ | |
USE [MyDatabase] | |
GO | |
SELECT name, collation_name | |
FROM sys.columns |
(function () { | |
'use strict'; | |
angular.module('myApp.directives').directive('validDate', ValidDateDirective); | |
ValidDateDirective.$inject = []; | |
function ValidDateDirective() { | |
return { | |
require: 'ngModel', |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using MyCompany.Models; | |
using Xunit; | |
namespace MyCompany.Clients.Test | |
{ | |
public class MyBaseModelTypesTest | |
{ |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using AutoGuru.Client.Shared; | |
using AutoGuru.Client.Shared.Dtos; | |
using AutoGuru.Client.Shared.Models; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Logging; |
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace ProjectReferencesFixer | |
{ | |
/// <summary> | |
/// A simple console app that fixes all csproj references in .sln files and .csproj files | |
/// (currently only works fixes in .csproj files that are using the new project system, e.g. PackageReference). |
You can use in two ways.
Directly as the pre-commit hook in your .git/hooks folder.
With Husky by updating your package.json with:
"husky": {