Skip to content

Instantly share code, notes, and snippets.

🕴️

David Risney david-risney

🕴️
Block or report user

Report or block david-risney

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
View JavaScriptDataBreakpoint.js
function ValueBreakpoint(parent, fullNamePath) {
var name = fullNamePath[0];
var childNamePath = fullNamePath.slice(1);
var innerValue = parent[name];
var childBreakpoints = [];
function applyChildValueBreakpoints() {
if (childNamePath.length > 0 && innerValue) {
childBreakpoints.push(new ValueBreakpoint(innerValue, childNamePath));
}
View registerProtocolHandler.html
This code won't run - just trying to get the idea across of how we might replace registerProtocolHandler, but only if register and registee both agree to use the replacement.
Page that wants to register:
<iframe class="hidden" src="http://you.github.io/registerProtocolHandler/" id="registerProtocolHandler"></iframe>
<script>
document.getElementById("registerProtocolHandler").contentWindow.postMessage({
operation: "setRegistration",
scheme: "web+action",
handler: "http://me.com/?url=%s"
@david-risney
david-risney / JavaScriptTypesAndWinRTTypes.md
Last active Feb 2, 2016
JavaScript Types & WinRT Types
View JavaScriptTypesAndWinRTTypes.md
WinRT Conversion JavaScript
Struct ↔️ JavaScript object with matching property names
Class or interface instance JavaScript object with matching property names
Windows.Foundation.Collections.IPropertySet JavaScript object with arbitrary property names
Any DOM object
View _vimrc
syntax on
color evening
set ts=4
set sw=4
set expandtab
set ai
set nohls
set incsearch
You can’t perform that action at this time.