Skip to content

Instantly share code, notes, and snippets.

View jsbin.puqalu.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>JS Bin</title>
View designer.html
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="kzh-typeahead">
:host {
position: absolute;
kaleb / .gitmodules
Last active Aug 29, 2015
Example Parent Repo
View .gitmodules
[submodule "sub"]
path = sub
url =
kaleb /
Created Aug 27, 2014
Example Submodule

This is my example git submodule.

kaleb /
Created Dec 4, 2014
This is a test. Please ignore.

Shoot me now.

kaleb / component-binding.html
Last active Aug 29, 2015
Knockout.js Custom Elements
View component-binding.html
<!DOCTYPE html>
<meta charset="utf-8">
<li><a href=".">custom element</a></li>
<li><b>component binding</b></li>
<li><a href="template-binding.html">template binding</a></li>
<hr />
<div data-bind="component: 'custom-element'">custom element loading...</div>
kaleb /
Last active Aug 29, 2015
KO Component With foreach Binding


I would like to be able to have a Knockout custom component that can have either static content or dynamic content using the foreach binding.

view demo

kaleb / StrictModeTest.js
Created Mar 4, 2011
Tests JavaScript Strict Mode Support
View StrictModeTest.js
var isStrictModeSupported = (function(){"use strict";return !this}());
kaleb / table.html
Created Apr 5, 2011
HTML 5 Table Example
View table.html
<!DOCTYPE html>
<title>HTML 5 Table Example</title>
<caption>This is a table</caption>
kaleb / dom-checkbox-label-test.js
Created Apr 17, 2011
Detect and fix leaky labels for disabled inputs
View dom-checkbox-label-test.js
var lbl = document.createElement('label'),
chk = document.createElement('input'),
proto, lblOnClick;
chk.type = 'checkbox';
chk.disabled = true;
if (chk.checked) {
// Labels need to be fixed
proto = Object.getPrototypeOf(lbl);