Skip to content

Instantly share code, notes, and snippets.

@qbikez
qbikez / example.tests.ps1
Last active February 27, 2016 05:43 — forked from nohwnd/example.tests.ps1
Pester problem matcher for VS Code
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 January 13, 2016 04:55 — forked from rossipedia/convert.ps1
packages.config -> project.json dependencies
(Select-xml '//package' -Path "packages.config" | % { """{0}"": ""{1}""" -f $_.Node.id,$_.Node.version }) -join ",`n"
@qbikez
qbikez / MimeMap.cs
Last active August 29, 2015 14:22 — forked from atifaziz/MimeMap.cs
#region Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Configuration;
using System.IO;
#endregion
<!-- 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