Skip to content

Instantly share code, notes, and snippets.

View lbugnion's full-sized avatar

Laurent Bugnion lbugnion

View GitHub Profile
using (headshotStream)
{
using (var maskStream = File.Open(@"C:\Users\lbugn\Desktop\HeadshotMask.png", FileMode.Open))
{
var maskBitmap = SKBitmap.Decode(maskStream);
var headshotBitmap = SKBitmap.Decode(headshotStream);
using (var surface = SKSurface.Create(new SKImageInfo(1000, 1000)))
{
var canvas = surface.Canvas;
Ingredients: (serve 6-8)
3-4 tbsp butter
2 small onion – finely sliced
1/2 leek – finely sliced
3 tomatoes – chopped into very small pieces
2 small stalks celery, finely sliced
1.5 liters chicken or vegetable stock/ 6 cups
200 ml cream/ 4/5 cups (you can add less if you wish, or none)
100 ml/ 1/2 cup sherry or port or Noilly Prat
3 tbsp tomato concentrate
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using WordsOfTheDayApp.Model;
using System.Net.Http;

A Gentle Introduction to Deep learning

Thanks everyone for watching!

The event is now over. For registered people, you will get the link to the recording in an email soon.

Take care and thanks again for making this a success!

Laurent

{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"prefix": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "A unique prefix in lowercase"
}
private CustomVisionPredictionClient _endpoint;
// ...
if (_endpoint == null)
{
_endpoint = new CustomVisionPredictionClient
{
ApiKey = App.PredictionKey // PredictionKey copied from the CustomVision.ai project
};
{"key":"b9428987d60ade36f292fa333f63c657","twittername":"@@LBugnion"}
{
"$connections": {
"value": {
"twitter": {
"connectionId": "/subscriptions/6e69cf24-0859-4dec-84e2-695e2618e473/resourceGroups/swisstechsummit/providers/Microsoft.Web/connections/twitter",
"connectionName": "twitter",
"id": "/subscriptions/6e69cf24-0859-4dec-84e2-695e2618e473/providers/Microsoft.Web/locations/westeurope/managedApis/twitter"
}
}
},
var client = new HttpClient();
var request = new HttpRequestMessage
{
RequestUri = new Uri(PostTweetUrl),
Method = HttpMethod.Post
};
var json = $"{{\"key\":\"{hash}\",\"twittername\":\"@@LBugnion\"}}";
<Window x:Class="WpfApplication3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication3"
mc:Ignorable="d"
Title="MainWindow"
Height="350"
Width="525"