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
<!-- import polymer-element's definition --> | |
<link rel="import" href="packages/polymer/polymer.html"> | |
<link rel="import" | |
href="packages/paper_elements/paper_button.html"> | |
<link rel="import" | |
href="packages/core_elements/core_style.html"> | |
<polymer-element name="click-counter" attributes="count"> | |
<template> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Initiative tracker</title> | |
<script src="packages/web_components/platform.js"></script> | |
<script src="packages/web_components/dart_support.js"></script> | |
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
<html> | |
<head> | |
<!-- Make polymer work (this is for future reference for the next version of Polymer Dart > 10.0.0) --> | |
<link rel="import" href="packages/polymer/polymer.html"> | |
<!-- Load component(s) --> | |
<link rel="import" href="markdown-markup.html"> | |
<script src="packages/unittest/test_controller.js"></script> | |
</head> | |
<body> | |
<script type="application/dart" src="test.dart"></script> |
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
<polymer-element name="store-changes-load" attributes="count"> | |
<template> | |
<style> | |
:host { | |
display: none; | |
} | |
</style> | |
</template> | |
<script type="application/dart" src="store_changes_load.dart"></script> | |
</polymer-element> |
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
import 'dart:html'; | |
class Person { | |
String firstname; | |
String lastname; | |
Person(this.firstname, this.lastname); | |
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
#The list of lists | |
list_of_lists = [range(4), range(7)] | |
#flatten the lists | |
flattened_list = [x for y in list_of_lists for x in y] | |
#or using itertools | |
list(itertools.chain(*list_of_lists)) |