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
USE master | |
GO | |
EXEC sp_configure 'show advanced options', 1 | |
GO | |
RECONFIGURE | |
GO | |
EXEC sp_configure 'xp_cmdshell', 1 | |
GO | |
RECONFIGURE | |
GO |
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
lexer grammar HlslAntlrLexer; | |
@lexer::header {#pragma warning disable 3021} | |
AppendStructuredBuffer : 'AppendStructuredBuffer'; | |
Bool : 'bool'; | |
Bool1 : 'bool1'; | |
Bool2 : 'bool2'; | |
Bool3 : 'bool3'; | |
Bool4 : 'bool4'; |
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
public static HtmlTag InputBlock<T>(this HtmlHelper<T> helper, | |
Expression<Func<T, object>> expression, | |
Action<HtmlTag> inputModifier = null, | |
Action<HtmlTag> validatorModifier = null) where T : class | |
{ | |
inputModifier = inputModifier ?? (_ => { }); | |
validatorModifier = validatorModifier ?? (_ => { }); | |
var divTag = new HtmlTag("div"); | |
divTag.AddClass("col-md-10"); |
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
public static HtmlTag FormBlock<T>(this HtmlHelper<T> helper, | |
Expression<Func<T, object>> expression, | |
Action<HtmlTag> labelModifier = null, | |
Action<HtmlTag> inputBlockModifier = null, | |
Action<HtmlTag> inputModifier = null, | |
Action<HtmlTag> validatorModifier = null | |
) where T : class | |
{ | |
labelModifier = labelModifier ?? (_ => { }); | |
inputBlockModifier = inputBlockModifier ?? (_ => { }); |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web.Optimization; | |
using Microsoft.Ajax.Utilities; | |
namespace System.Web.Mvc | |
{ | |
public static class OptimizationExtensions |
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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Text; | |
//A simple C# class to post messages to a Slack channel | |
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet | |
public class SlackClient | |
{ |
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 System; | |
using System.Linq; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection.Extensions; | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var services = new ServiceCollection(); |
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
/// <reference path="../jquery-1.7.js" /> | |
/// <reference path="../jquery.validate.js" /> | |
/// <reference path="../jquery.validate.unobtrusive.js" /> | |
// Originally by XHalent, @xhalent | |
// http://xhalent.wordpress.com/ | |
// http://xhalent.wordpress.com/2011/01/24/applying-unobtrusive-validation-to-dynamic-content/ | |
// Modified by Joel Purra | |
// http://joelpurra.com/ |
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
/* | |
System.CodeDom.Compiler | |
System.Runtime.InteropServices | |
Microsoft.CSharp | |
*/ | |
void Main() | |
{ | |
Environment.CurrentDirectory = Path.GetDirectoryName(Util.CurrentQueryPath); | |
Compiler.CompileFiles(Options.CreateOnDiskDll( |
OlderNewer