Skip to content

Instantly share code, notes, and snippets.

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;
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;
--[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";
from flask import Flask
from flask import request
from flask_httpauth import HTTPBasicAuth
app = Flask(__name__)
auth = HTTPBasicAuth()
users = {
}
{
"interactionModel": {
"languageModel": {
"invocationName": "delta bravo",
"intents": [
{
"name": "AMAZON.FallbackIntent",
"samples": []
},
{
@JoeGannon
JoeGannon / TableReferences.sql
Created March 1, 2018 22:17
Table Heirarchy
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),
@JoeGannon
JoeGannon / pullreq.sh
Last active December 13, 2017 21:51
BitBucket PR from CLI
#!/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
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
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);