Skip to content

Instantly share code, notes, and snippets.

@kentcooper
kentcooper / SideWaffleFeaturesLayout.html
Created August 8, 2015 03:39
quick layout of features for sidewaffle site using static data
<section id="features">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Features</h2>
<h3 class="section-subheading text-muted">SideWaffle has large collection of project and item tempaltes for you to choose from.</h3>
</div>
</div>
<div class="row">
<div class="col-md-4">
@kentcooper
kentcooper / update-item-templates-add-sortOrder.ps1
Last active August 29, 2015 14:24 — forked from sayedihashimi/update-templates-for-aspnet5.ps1
Adds SortOrder to all the SideWaffle VS Item Templates
$files = Get-ChildItem D:\GitHub\side-waffle\TemplatePack\ItemTemplates *.vstemplate -Recurse | % { $_.FullName }
foreach($filePath in $files){
[xml]$templateXml = Get-Content $filePath
$updatedFile = $false
'Processing [{0}]' -f $filePath | Write-Host
if($templateXml.VSTemplate.TemplateData.SortOrder){
' Found SortOrder'|write-host
@kentcooper
kentcooper / SpaHostExtension.cs
Last active November 1, 2023 08:52
Creating a SPA Host Owin Middleware
using System;
using System.IO;
using Microsoft.Owin;
using Microsoft.Owin.FileSystems;
using Microsoft.Owin.StaticFiles;
using Owin;
namespace Infrastructure.Owin
{
public static class SpaHostExtension
@kentcooper
kentcooper / update-template.ps1
Created April 9, 2015 05:48
Update Visual Studio item templates to resolve issue with Add Class context menu
$cSharpFiles = Get-ChildItem D:\GitHub\side-waffle\TemplatePack\ItemTemplates\Web CSharp.vstemplate -Recurse -Exclude D:\GitHub\side-waffle\side-waffle\TemplatePack\ItemTemplates\Web\ASP.NET
foreach($filePath in $cSharpFiles){
$updatedFile = $false
'Processing [{0}]' -f $filePath | Write-Host
(Get-Content $filePath.PSPath) |
Foreach-Object {$_ -replace "ABC \| \(!ABC\)", "!VB"} |
Set-Content $filePath.PSPath
}