This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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 | |
} |