Skip to content

Instantly share code, notes, and snippets.

<carbon-location route="{{numberOneTopRoute}}"></carbon-location>
<carbon-route
pattern="/foo/:foo"
route="{{numberOneTopRoute}}"
data="{{fooData}}"
tail="{{fooRoute}}">
</carbon-route>
<carbon-route
@cdata
cdata / x-property-path-bound.html
Created February 10, 2016 19:21
Strawman gambit for property names as paths through objects.
<dom-module id="x-property-path-bound">
<template>
<carbon-route
route="{{route}}"
match=":foo/:bar/:baz"
data.foo="{{foo}}"
data.bar="{{bar}}"
data.baz="{{baz}}">
</carbon-route>
</template>
@cdata
cdata / my-metabox.user.js
Last active January 23, 2016 21:46
A userscript that enables some advanced features on MyMediabox.
// ==UserScript==
// @name MyMetabox
// @namespace MyMetabox
// @include https://*.mymediabox.com/*
// @version 1
// @run-at document-start
// @grant none
// ==/UserScript==
(function(window) {
<head>
<base href="http://localhost:8888/components/test-benchmark/demo/">
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
(function SetupFrame() {
'use strict';
function Test () {
this.startTime = -1;
this.stopTime = -1;
<script>
Polymer.ElementReferenceBehavior = {
created: function() {
this.__nextDynamicId = 0;
},
deserialize: function(id, type) {
if (type === HTMLElement) {
// For the purposes of this implementation, `this` is
// assumed to be a Polymer element.
<html>
<head>
<meta charset="UTF-8">
<title>custom-quiz basic tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<script src="../../../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../bower_components/web-component-tester/browser.js"></script>
<script src="../../../bower_components/test-fixture/test-fixture-mocha.js"></script>
<script src="../../../bower_components/iron-test-helpers/mock-interactions.js"></script>

Polymer Elements

Guide for Contributors

Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines:

Filing Issues

If you are filing an issue to request a feature, please provide a clear description of the feature. It can be helpful to describe answers to the following questions:

  1. Who will use the feature? “As someone filling out a form…”
{
"type": "stylesheet",
"stylesheet": {
"rules": [
{
"type": "charset",
"value": "'UTF-8'"
},
{
"type": "import",
form.addEventListener('iron-form-presubmit', function(event) {
event.preventDefault();
var firebase = new Firebase(form.getAttribute('action'));
firebase.set(form.serialize());
});
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyOB2UEpZJJCMoFoSuf7uN+PtuAWkfX/Z6atjaTiW1E6A+X0Fs1JELv2JGolVU1Ag/c03wSISmbIxcr6QbSZ6vyG6Y3QXPHxudREpiDZrGlV5P4AXV4LVUFfuI5zGFFC3Ilsd/dWaUxOziLkYP+SzvZgya0RXNRy8XCtTm6he6mle7oJ8Z1DLRmhCyNN3y/a7zdkZ7Ry8JptR/TeTLuxUZvmrf+RrlWzw3oPfNwoj+GWXEYwAYu/F5knRMoiR+wkuUXA36AXwaalz1dh1NL3OMGSvaZV4wG/RaIma6rZ9+5pHI/D2X5C3bt5u7apgUeaL1A3vnyJZkFejHIhL69ea1 cdata@google.com