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
<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> |
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
public selectShirt(num) { | |
this.shirt = num; | |
this.calcOutfit(); | |
} |
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
{ | |
"id": "1", | |
"season": "fall2017", | |
"shirts": [ | |
{ | |
"num": 0, | |
"url": "https://whateverbillhasstorage.blob.core.windows.net/whateverbillhasstatic/shirt_1.png", | |
"notes": "" | |
}, | |
{ |
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
public interface IWardrobeAccessor | |
{ | |
Task<int> Count(); | |
Task<Wardrobe[]> Wardrobes(); | |
Task<Wardrobe> CurrentWardrobe(); | |
Task<Wardrobe> AddWardrobe(Wardrobe warrobe); | |
} |
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
public class Shirt | |
{ | |
[JsonProperty(PropertyName = "num")] | |
public string Num { get; set; } | |
[JsonProperty(PropertyName = "imageurl")] | |
public string ImageUrl { get; set; } | |
} | |
public class Pant |
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
public class AccessorFactory | |
{ | |
public string _endpoint; | |
public string _key; | |
public AccessorFactory(string endpoint, string key) | |
{ | |
_endpoint = endpoint; | |
_key = key; |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var endpoint = args[0]; | |
var key = args[1]; | |
Task.Run(async () => | |
{ | |
await Run(endpoint, key); |
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
#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) |
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
#github | |
Host github.com | |
User [email protected] | |
IdentityFile ~/.ssh/id_rsa_<description> |
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
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)){ |