Skip to content

Instantly share code, notes, and snippets.


Thomas Pentenrieder ThomasPe

View GitHub Profile
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(
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 = "";
var baseUri = "";
var output = [];
var outputFilename = "redstripedeals.json";