Skip to content

Instantly share code, notes, and snippets.

View meulta's full-sized avatar

etiennemargraff meulta

View GitHub Profile
using System;
using System.Linq;
using System.Threading.Tasks;
using UnityEngine;
#if UNITY_WSA && !UNITY_EDITOR
using Windows.Storage;
using Windows.Media.Capture;
using Windows.Media.MediaProperties;
using Windows.Media.Capture.Frames;
#if UNITY_WSA && !UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.AI.MachineLearning.Preview;
using Windows.Media;
@meulta
meulta / wrapper.cs
Created May 17, 2018 23:38
Generated wrapper for an ONNX file to use in Windows ML
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Windows.Media;
using Windows.Storage;
using Windows.AI.MachineLearning.Preview;
namespace MyNamespace
{
public sealed class MyModelInput
@meulta
meulta / bot.js
Last active April 15, 2017 19:23
Push notifications
const webPush = require('web-push');
const restify = require('restify');
const builder = require('botbuilder');
const fs = require('fs');
const vapidKeyFilePath = "./vapidKey.json";
var vapidKeys = {};
if (fs.existsSync(vapidKeyFilePath)) {
//if the vapid file exists, then we try to parse its content