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
namespace Grid.Web.Helpers.HtmlExtensions | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
using System.Web.Mvc; | |
public class Grid<TModel> | |
{ | |
private IEnumerable<TModel> dataSource; |
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
namespace Demo | |
{ | |
using FluentValidation; | |
using FluentValidation.Internal; | |
using FluentValidation.Validators; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using StructureMap; |
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
--[Extended Character Stats v1](https://www.curseforge.com/wow/addons/extended-character-stats) | |
--Client 11302 | |
-- Empty variable for stats | |
local ECS_CHARACTER_STATS = nil; | |
-- Font for the header display | |
local headerFont = "GameFontNormal"; | |
-- Font for the stat display | |
local statFont = "GameFontHighlightSmall"; |
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
from flask import Flask | |
from flask import request | |
from flask_httpauth import HTTPBasicAuth | |
app = Flask(__name__) | |
auth = HTTPBasicAuth() | |
users = { | |
} |
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
{ | |
"interactionModel": { | |
"languageModel": { | |
"invocationName": "delta bravo", | |
"intents": [ | |
{ | |
"name": "AMAZON.FallbackIntent", | |
"samples": [] | |
}, | |
{ |
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 @ChildTable varchar(100) = 'sc_TenantContactSource'; | |
declare @ParentTable varchar(100); | |
declare @TableId int; | |
declare @Tables table | |
( | |
Id int identity(1,1), | |
ChildTable varchar(100), | |
ParentTable varchar(100), | |
Level int default (0), |
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
#!/bin/bash | |
gitDir="$PWD/.git" | |
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
headCommit=$(git log develop..$branch --reverse --format='%s' | head -n 1) | |
title=$headCommit | |
tailCommits=$(git log develop..$branch --reverse --pretty=format:*%s\\n\\n) | |
desc=$tailCommits |
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
namespace YourNamespace | |
{ | |
using System.Collections.Generic; | |
using System.Reflection; | |
using Construktion; | |
using Xunit.Abstractions; | |
using Xunit.Sdk; | |
[DataDiscoverer("YourNamespace.NoDataDiscovery", "YourAssembly")] | |
public class ConstruktionData : DataAttribute |
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 CrudComparer : IComparer<string> | |
{ | |
private static readonly string[] Crud = new[] | |
{ | |
"Create", "Read", "Update", "Delete" | |
}; | |
public int Compare(string left, string right) | |
{ | |
var leftName = CrudName(left); |