Skip to content

Instantly share code, notes, and snippets.

<link rel="import" href="../paper-calculator/paper-calculator.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@garlicnation
garlicnation / gist:4ee30b00e01f7fc605d3
Last active August 29, 2015 14:15
Designer hydrolyzed
{
"modules": [],
"elements": [
{
"properties": [
{
"name": "created",
"type": "Function"
},
{
@garlicnation
garlicnation / gist:0dfed22e72f92ccf8206
Created March 2, 2015 21:00
Designer2 deep metadata.
{
"modules": [],
"elements": [
{
"properties": [
{
"name": "configure",
"type": "Function"
},
{

Why minification will always help compression:

Take:

function (apples) {
	var all_my_apples = ["another apple"];
	for (var i = 0; i < apples.length; i++) {
		all_my_apples.push(apples[i]);
	}
	return all_my_apples;
from django.utils.safestring import mark_safe
def oneWayBind(expression):
return mark_safe("[[" + expression + "]]")
def twoWayBind(expression):
return mark_safe("{{" + expression + "}}")
function emailTest(name, address) {
test(name, function() {
var input = fixture('basic');
forceXIfStamp(input);
var container = Polymer.dom(input.root).querySelector('paper-input-container');
assert.ok(container, 'paper-input-container exists');
input.value = address;
assert.isFalse(container.invalid);
<link rel="import" href="../polymer/polymer.html">
<dom-module id="el-one">
<template>Foo</template>
</dom-module>
/**
* Resolves a package.
* @param {string} pkg A bower-like repository description, github repo, or other git url
* @return {Array.<{{folder:string, repository:}}>} A list of packages and URLs to add to the workspace.
*/
resolve: function(pkg) {
// Install the package to a tempdir, return a
},
Repository must be specified for gold-elements
Repository must be specified for hydrolysis
Repository must be specified for iron-a11y-announcer
Repository must be specified for iron-a11y-keys
Repository must be specified for iron-a11y-keys-behavior
Repository must be specified for iron-behaviors
Repository must be specified for iron-component-page
Repository must be specified for iron-doc-viewer
Repository must be specified for iron-elements
Repository must be specified for iron-flex-layout