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="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="line-chart" attributes="m"> | |
<template> | |
<style> | |
#x_design_host { | |
position: absolute; | |
width: 100%; | |
height: 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>attributes</title> | |
</head> | |
<body> | |
<element name="x-attributes" attributes="model"> | |
<template> | |
model: {{ model }} | |
</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
/* | |
* dart version of http://benv.ca/2012/10/4/you-are-probably-misusing-DOM-text-methods/ | |
*/ | |
import 'dart:html'; | |
import 'package:unittest/unittest.dart'; | |
import 'package:unittest/html_enhanced_config.dart'; | |
String escapeHtml(String str) { | |
var div = new Element.tag('div'); |
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
/* | |
* dart document.cookie lib | |
* | |
* ported from | |
* http://www.quirksmode.org/js/cookies.html | |
* | |
*/ | |
void createCookie(String name, String value, int days) { | |
String expires; |
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
/** | |
* location: dart/frog/file_system_node.dart | |
* library: file_system_node | |
* class: NodeFileSystem | |
* File system implementation using nodejs api's (for self-hosted compiler). | |
*/ | |
#import('../../frog/file_system_node.dart'); | |
NodeFileSystem _fs = new NodeFileSystem(); |
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
#!/bin/sh | |
# move to the dart/frog folder in your checkout | |
cd ~/workspace/dartlang/dev/dart/frog | |
# build the VM | |
../tools/build.py -m release | |
# build frogsh | |
./frog.py --out=frogsh --compile-only --enable_type_checks frog.dart |
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
#!/bin/sh | |
export PATH=$PATH:`pwd`//depot_tools | |
svn up depot_tools | |
gclient config http://dart.googlecode.com/svn/branches/bleeding_edge/deps/all.deps | |
gclient sync | |
cd dart/ | |
./tools/build.py --arch=ia32 |