Skip to content

Instantly share code, notes, and snippets.

Aaron wiredprairie

Block or report user

Report or block wiredprairie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@staltz
staltz / introrx.md
Last active Jun 15, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@donavon
donavon / getThumbnailFromWebView.js
Last active Mar 22, 2016
`transformImageStream` is a WinJS (Windows 8) utility to transform an image stream. The sample code to get a snapshot from a WebView control requires Windows 8.1.
View getThumbnailFromWebView.js
// Takes a snapshot of WebView control (Windows 8.1) and returns a thumbnail URL.
function getThumbnailFromWebView(webviewControl, width, height) {
return capturePreviewToBlobAsync(webviewControl).then(function (completeEvent) {
var blob = completeEvent.target.result;
var streamIn = blob.msDetachStream();
var Imaging = Windows.Graphics.Imaging;
var transform = new Imaging.BitmapTransform();
transform.scaledHeight = height;
transform.scaledWidth = width;
You can’t perform that action at this time.