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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
*********************************************************************************************** | |
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> | |
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |
<PropertyGroup> | |
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | |
</PropertyGroup> | |
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" /> | |
</Target> |
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
SET ANSI_NULLS ON; | |
GO | |
SET QUOTED_IDENTIFIER ON; | |
GO | |
SET ANSI_PADDING ON; | |
GO | |
IF EXISTS | |
( | |
SELECT * | |
FROM sys.objects |
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
DECLARE @now datetime; | |
SET @now = GETDATE(); | |
SELECT CONVERT(nvarchar(max), @now, 0) AS output, 0 AS style | |
UNION | |
SELECT CONVERT(nvarchar(max), @now, 1), 1 | |
UNION | |
SELECT CONVERT(nvarchar(max), @now, 2), 2 | |
UNION |
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 [master]; | |
GO | |
SET NOCOUNT ON; | |
DECLARE @debug BIT= 0; | |
DECLARE @compression BIT= 1; | |
DECLARE @shrink BIT= 1; | |
DECLARE @copyonly BIT= 1; | |
DECLARE @path NVARCHAR(4000); | |
DECLARE @key NVARCHAR(MAX)= N'Software\Microsoft\MSSQLServer\'+@@servicename+''; | |
EXEC master.dbo.xp_instance_regread |
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
DECLARE @target_collation nvarchar(100)= 'Modern_Spanish_CI_AI'; | |
DECLARE @server_collation nvarchar(100)= (SELECT CONVERT(varchar, SERVERPROPERTY('collation'))); | |
DECLARE @db_collation nvarchar(100); | |
DECLARE @db_name nvarchar(200); | |
SELECT @db_collation = [collation_name], @db_name = [name] | |
FROM sys.databases |
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
# Set the default behavior, in case people don't have core.autocrlf set. | |
* binary | |
*.bas text eol=crlf | |
*.frm text eol=crlf | |
*.ctl text eol=crlf | |
*.log text eol=crlf | |
*.vbp text eol=crlf | |
*.cls text eol=crlf | |
*.vbw text eol=crlf | |
*.dsr text eol=crlf |
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 ReadabilityHelper | |
{ | |
public static string ToRedable(this long size, string format = "") | |
{ | |
var result = string.Empty; | |
if (size >= 100000) | |
result = htmlHelper.RedableLong(size / 1000) + "K"; | |
else if (size >= 10000) | |
result = (size / 1000D).ToString("0.#") + "K"; | |
else |
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( | |
[string]$Script = ".\build.cake", | |
[string]$Target = "Default", | |
[string]$Configuration = "Release", | |
[ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")] | |
[string]$Verbosity = "Verbose", | |
[switch]$Experimental, | |
[Alias("DryRun","Noop")] | |
[switch]$WhatIf | |
) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Stylesheet for Microsoft Word 2007-2016 Bibliography formatting. | |
Author(s): Enner Pérez (ennerperez@gmail.com) | |
Copyright: Copyright (c) 2017 Enner Pérez | |
Permission is hereby granted, free of charge, to any person obtaining a |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Stylesheet for Microsoft Word 2007/2008/2010 Bibliography formatting. | |
Author(s): Yves Dhondt (yves.dhondt@gmail.com) | |
Copyright: Copyright (c) 2009 Yves Dhondt | |
Permission is hereby granted, free of charge, to any person obtaining a |
OlderNewer