This file contains 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
if (turnContext.Activity.Attachments != null && turnContext.Activity.Attachments.Any()) | |
{ | |
// We know the user is sending an attachment as there is at least one item | |
// in the Attachments list. | |
await HandleIncomingAttachmentAsync(turnContext, turnContext.Activity); | |
return; | |
} | |
if (turnContext.Activity.Text?.Trim()?.ToLowerInvariant() == "hi") | |
{ |
This file contains 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 SixLabors.ImageSharp; | |
using SixLabors.ImageSharp.PixelFormats; | |
using SixLabors.ImageSharp.Processing; | |
using SixLabors.Primitives; | |
using System; | |
using System.IO; | |
namespace ImagePreprocessingService | |
{ | |
public class MNISTPreprocessor |
This file contains 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
<head> | |
<style> | |
html, | |
body { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
} | |
canvas { |
This file contains 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
// ==UserScript== | |
// @name Messenger dark theme | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.7 | |
// @updateURL https://gist.github.com/mark-szabo/7bfd322575686ed4b09c810bd2fd03b2/raw/messenger-dark-mode.user.js | |
// @downloadURL https://gist.github.com/mark-szabo/7bfd322575686ed4b09c810bd2fd03b2/raw/messenger-dark-mode.user.js | |
// @description Messenger dark theme | |
// @author mark-szabo (forked from bibixx) | |
// @match https://www.messenger.com/* | |
// @grant none |
This file contains 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
{ | |
"requirements": [ | |
{ | |
"name": "Windows 10 Fall Creators Update", | |
"additionalInformation": "build 16299 or later", | |
"checks": [ | |
{ | |
"checkType": "MinimumRegistryValue", | |
"registryHive": "LocalMachine", | |
"registryKey": "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", |