Skip to content

Instantly share code, notes, and snippets.

View markheath's full-sized avatar

Mark Heath markheath

View GitHub Profile
@pascalnaber
pascalnaber / dev-resources.sh
Last active March 31, 2020 20:18
azure cli sample
KEYVAULT_NAME=donovankv
RESOURCEGROUP=donovan
MY_SECRET_VALUE=donovan
FUNCTIONAPP_STORAGEACCOUNT_NAME=donovanstore
LOCATION=westeurope
FUNCTIONAPP_NAME=donovanfa
. ./resources.sh
@JeffBrand
JeffBrand / run.cs
Last active March 16, 2020 08:49
Azure Function for Transcribing Speech
#r "Microsoft.WindowsAzure.Storage"
#r "Newtonsoft.Json"
using System.Net;
using Microsoft.CognitiveServices.SpeechRecognition;
public class ReportItem{
public string id {get;set;}
public string audioFile {get;set;}
public string audioText {get;set;}
}
@Kevin-Bronsdijk
Kevin-Bronsdijk / automatically-deallocate-azure-vms.ps1
Created July 28, 2015 15:38
automatically-deallocate-azure-vms
#Change VMName, Service Name and min/max values in hours
$ExpectedUptime = 6
$ForceShutdownAfter = 8
$VMName = "name of VM"
$ServiceName = "Name of service"
$Now = Get-Date
$Wmi = Get-WmiObject -ComputerName $Env:COMPUTERNAME -Query "SELECT LastBootUpTime FROM Win32_OperatingSystem"
$LastReboot = $Wmi.ConvertToDateTime($Wmi.LastBootUpTime)
$Uptime = $Now - $LastReboot
@imjasonh
imjasonh / markdown.css
Last active February 12, 2024 17:18
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@nicklanng
nicklanng / F# SpaceWar Domain
Last active August 29, 2015 14:02
F# Spacewar Exploration
[<Measure>]
type ly;
[<Measure>]
type s;
type Coordinate = {
x: float<ly>
y: float<ly>
z: float<ly>
@edersohe
edersohe / example.html
Created December 31, 2010 09:19
short plugin that implement vertical buttonset for radio buttons and checkboxes with jquery ui
<html>
<head>
<title>Test</title>
<link rel="stylesheet" media="all" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/start/jquery-ui.css"></link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js"></script>
<script src="jquery.myplugin.js"></script>
<script>
$(document).ready(function(){
//call plugin