Skip to content

Instantly share code, notes, and snippets.

<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
//set value to multidementional dict with lists/dicts inside
def set_val(self, path='', new_val=None, *args):
if '/' in path:
chunks = path.split('/')
chunks.reverse()
val = self.data
while (len(chunks)>1):
chunk = chunks.pop()
$(function () {
$("ul li").jqcanvas(function (canvas, width, height){
var ctx = canvas.getContext("2d");
ctx.clearRect(0,0,width,height);
ctx.fillStyle = "rgba(255,165,0,1)";
ctx.fillRect(0, 0, width, height);
},
{
verifySize: false
}