Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Pentenrieder ThomasPe

View GitHub Profile
@ThomasPe
ThomasPe / ScriptInvokeWebViewExtensions.cs
Last active Nov 11, 2017
This is an extension to the XAML WebView for invoking scripts from a ViewModel
View ScriptInvokeWebViewExtensions.cs
public static class WebViewExtensions
{
/// <summary>
/// Using a DependencyProperty as the backing store for Content Uri.  This binding Content Uri.
/// </summary>
public static readonly DependencyProperty InvokeScriptProperty = DependencyProperty.RegisterAttached(
"InvokeScript",
typeof(string),
typeof(WebViewExtensions),
@ThomasPe
ThomasPe / RedStripeDealsCrawler.js
Created Apr 27, 2016
A simple Node.js script to crawl the Red Stripe Deals from the Windows Store and saving the app details into a JSON file.
View RedStripeDealsCrawler.js
var request = require('request');
var cheerio = require('cheerio');
var fs = require('fs');
var async = require('async');
var zlib = require('zlib');
var dealsUri = "https://www.microsoft.com/en-us/store/collections/redstripedeals/pc";
var baseUri = "http://microsoft.com";
var output = [];
var outputFilename = "redstripedeals.json";