Skip to content

Instantly share code, notes, and snippets.

View dontpaniclabsgists's full-sized avatar

Don't Panic Labs dontpaniclabsgists

View GitHub Profile
<p>
Bill Udell is an engineer with style. I, Chad Michel, decided to make it easier for the rest of us to upgrade our wardrobe to a more Bill-approved version. This will help us get rid of the StrongBad t-shirt and get into something nicer.
</p>
public selectShirt(num) {
this.shirt = num;
this.calcOutfit();
}
{
    "id": "1",
    "season": "fall2017",
    "shirts": [
        {
            "num": 0,
            "url": "https://whateverbillhasstorage.blob.core.windows.net/whateverbillhasstatic/shirt_1.png",
            "notes": ""
        },
        {
public interface IWardrobeAccessor
{
    Task<int> Count();
    Task<Wardrobe[]> Wardrobes();
    Task<Wardrobe> CurrentWardrobe();
    Task<Wardrobe> AddWardrobe(Wardrobe warrobe);
}
public class Shirt
 {
     [JsonProperty(PropertyName = "num")]
     public string Num { get; set; }
     [JsonProperty(PropertyName = "imageurl")]
     public string ImageUrl { get; set; }
 }
 public class Pant
public class AccessorFactory
{
    public string _endpoint;
    public string _key;
    public AccessorFactory(string endpoint, string key)
    {
        _endpoint = endpoint;
        _key = key;
class Program
 {
     static void Main(string[] args)
     {
         var endpoint = args[0];
         var key = args[1];
         Task.Run(async () =>
         {
             await Run(endpoint, key);
#r "System.Configuration"
#r "Newtonsoft.Json"
#r "Microsoft.Azure.WebJobs.Extensions.DocumentDB"
#r "WhateverBillHas.Accessors.dll"
 
using System.Net;
using System.Configuration;
using WhateverBillHas.Accessors;
 
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
#github
Host github.com
User [email protected]
IdentityFile ~/.ssh/id_rsa_<description>
Import-Module posh-git
Start-SshAgent -Quiet
$loadedFiles = Add-SshKey -l
$existingFiles = Get-ChildItem "~/.ssh/"
$fileRegEx = new-object System.Text.RegularExpressions.Regex ('^id_rsa_[^\.]+$', [System.Text.RegularExpressions.RegexOptions]::MultiLine)
ForEach($file in $existingFiles){
If($fileRegEx.IsMatch($file.Name)){