This file contains hidden or 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 @handle UNIQUEIDENTIFIER; | |
WHILE (SELECT COUNT(*) FROM NameOfQueue) > 0 | |
BEGIN | |
RECEIVE TOP (1) @handle = conversation_handle FROM NameOfQueue; | |
END CONVERSATION @handle WITH CLEANUP | |
END |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Converts Markdown formatted text to HTML. | |
.DESCRIPTION | |
Converts Markdown formatted text to HTML using the Github API. Output is "flavored" depending on | |
the chosen mode. The default output flavor is 'Markdown' and includes Syntax highlighting and | |
Github stylesheets. | |
Based on the Ruby version by Brett Terpstra: | |
http://brettterpstra.com/easy-command-line-github-flavored-markdown/ |
This file contains hidden or 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
[CmdletBinding()] Param ( | |
[Parameter(Position = 0, Mandatory = $True, ValueFromPipelineByPropertyName = $True)] | |
[ValidateNotNullOrEmpty()] | |
[Alias('FullName')] | |
[String] | |
$filePath | |
) | |
function ConvertFrom-md($mdText){ | |
$response = Invoke-WebRequest -Uri 'https://api.github.com/markdown/raw' -Method Post -body "$mdText" -ContentType "text/plain" |