Skip to content

Instantly share code, notes, and snippets.

qbik qbikez

View GitHub Profile
@qbikez
qbikez / example.tests.ps1
Last active Feb 27, 2016 — forked from nohwnd/example.tests.ps1
Pester problem matcher for VS Code
View example.tests.ps1
describe "DS"{
it "skipped" {} -skip
it "pending" {} -Pending
It "throw" { throw "sdfad" }
It "assertion fail" {1 | should be 10 }
It "string assertion fail" {"asdf" | should be "ffsad" }
it "success" {"adsf"}
}
@qbikez
qbikez / convert-packagesconfig.ps1
Last active Jan 13, 2016 — forked from rossipedia/convert.ps1
packages.config -> project.json dependencies
View convert-packagesconfig.ps1
(Select-xml '//package' -Path "packages.config" | % { """{0}"": ""{1}""" -f $_.Node.id,$_.Node.version }) -join ",`n"
View MimeMap.cs
#region Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Configuration;
using System.IO;
#endregion
View Transforms.xml
<!-- This task takes in a XDT transform file and transforms it, following any inheritance chain.
There should be at least one base transform for this to work; otherwise just use Microsoft's
regular TransformXml task. -->
<!-- EXAMPLE USAGE:
<TransformXmlHierarchy
Source="source.xml"
Destination="transformed.xml"
TaskDirectory="path/to/directory/of/Microsoft.Web.Publishing.Tasks" />
-->
<UsingTask
You can’t perform that action at this time.