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
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Net; | |
using System.Threading.Tasks; | |
using Autofac; | |
using EventBot.SupportLibrary.Contract; | |
using EventBot.SupportLibrary.Entity; | |
using Newtonsoft.Json; | |
using Xamling.Azure.Portable.Contract; |
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
using Arlo.SDK.Entities; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Arlo.SDK.Entities.Product; | |
using Microsoft.Azure.Search; | |
using Microsoft.Azure.Search.Models; | |
using System.ComponentModel.DataAnnotations; |
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
//thanks http://brandewinder.com/2017/04/01/azure-function-app-diagram/ | |
{ | |
"dot": "digraph app {\r\nnode [shape=doublecircle,style=filled,color=orange]\r\n \"check-mentions\"\r\n \"follow-users\"\r\n \"process-mention\"\r\n \"send-tweet\"\r\nnode [shape=box,style=filled,color=yellow]\r\n \"Timer\"\r\n \"Blob incontainer\/lastid\"\r\n \"Queue mentions\"\r\n \"Queue friends\"\r\n \"Queue tweets\"\r\nnode [shape=box,style=filled,color=lightblue]\r\n \"linqtotwitter (4.1.0)\"\r\n \"Newtonsoft.Json (9.0.1)\"\r\n \"FSharp.Compiler.Service (9.0.1)\" \r\nedge [ style=bold ]\r\n \"Timer\" -> \"check-mentions\" [ label = \"timer\" ]\r\n \"Queue friends\" -> \"follow-users\" [ label = \"userName\" ]\r\n \"Queue mentions\" -> \"process-mention\" [ label = \"input\" ]\r\n \"Queue tweets\" -> \"send-tweet\" [ label = \"input\" ]\r\nedge [ style=solid ]\r\n \"Blob incontainer\/lastid\" -> \"check-mentions\" [ label = \"previousID\" ]\r\nedge [ style=solid ]\r\n \"c |
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
static List<IndexText> Parse(string vtt, string videoId){ | |
string[] lines = vtt.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None); | |
var tcStart = default(TimeSpan); | |
var tcEnd = default(TimeSpan); | |
var indexList = new List<IndexText>(); | |
foreach (var l in lines) | |
{ |
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
ffmpeg -y -i "dotnetrun ks.mp4" -vf fps=10,scale=320:-1:flags=lanczos,palettegen palette.png | |
ffmpeg -i "dotnetrun ks.mp4" -i palette.png -filter_complex "fps=10,scale=1024:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif |
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 "Microsoft.WindowsAzure.Storage" | |
using Microsoft.WindowsAzure.Storage.Blob; | |
using System.Diagnostics; | |
using System.IO; | |
public static async Task Run(Stream myBlob, string name, Binder binder, TraceWriter log) | |
{ | |
log.Info($"Jordan C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes"); |
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
/*Usage | |
public async Task TestParallelThings() | |
{ | |
var tasks = new Queue<Func<Task>>(); | |
for (var i = 0; i < 200; i++) | |
{ | |
int c = i; |
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
{ | |
"$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json", | |
"webJobName": "SyncJob", | |
"startTime": "2015-12-16T00:00:00+10:00", | |
"endTime": "2020-12-16T00:00:00+10:00", | |
"jobRecurrenceFrequency": "Hour", | |
"interval": 6, | |
"runMode": "Scheduled" | |
} |
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
//From <https://stormpath.com/blog/token-authentication-asp-net-core> | |
var tokenValidationParameters = new TokenValidationParameters | |
{ | |
// The signing key must match! | |
ValidateIssuerSigningKey = true, | |
IssuerSigningKey = signingKey, | |
// Validate the JWT Issuer (iss) claim | |
ValidateIssuer = true, |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
using ModernHttpClient; | |
using UIKit; | |
using ProjectTripod.Portable.Model.Messages; | |
using ProjectTripod.Portable.Model.Workflow; |
NewerOlder