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-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
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/bash | |
# ~ doesn't work in string resolution use /home/$USER/ instead | |
DOWNLOAD_DIR="/home/$USER/Downloads/Dart" | |
CURRENT_VERSION_FILE="VERSION_current" | |
NEW_VERSION_FILE="VERSION_new" | |
#DOWNLOAD_VERSION_FILE="VERSION_download" | |
#VERSION_URL="http://gsdview.appspot.com/dart-archive/channels/dev/release/latest/VERSION" | |
VERSION_URL="http://gsdview.appspot.com/dart-archive/channels/be/raw/latest/VERSION" | |
#EDITOR_LINUX64_URL="http://gsdview.appspot.com/dart-archive/channels/dev/release/latest/editor/darteditor-linux-x64.zip" |
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
%% | |
%% This style is derived from the docbook one. | |
%% | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{asciidoc}[2008/06/05 AsciiDoc DocBook Style] | |
%% Just use the original package and pass the options. | |
\RequirePackageWithOptions{docbook} | |
% Sidebar is a boxed minipage that can contain verbatim. | |
% Changed shadow box to double box. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Syntax highlighting definition for Dart | |
xslthl - XSLT Syntax Highlighting | |
http://sourceforge.net/projects/xslthl/ | |
Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks | |
This software is provided 'as-is', without any express or implied |
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
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
// SO 29538557 | |
void main() { | |
print({'name': 'jhon', 'lastName': 'Doe'} == | |
{'name': 'jhon', 'lastName': 'Doe'}); | |
} |
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
// SO 29538557 | |
void main() { | |
List persons = []; | |
persons.add({'name': 'jhon', 'lastName': 'Doe'}); | |
print('before: $persons'); | |
persons.removeWhere((p) => p['name'] == 'jhon' && p['lastName'] == 'Doe'); | |
print('after: $persons'); | |
} |
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
// SO 29428637 | |
import 'dart:html' as dom; | |
const url = 'https://gist.githubusercontent.com/zoechi/a5170ff293b861b3db6b/raw/cf1332926cf9feb9d7463750a66df75571e6ab89/main.dart'; | |
main() async { | |
try { | |
final response = await dom.HttpRequest.getString(url); | |
print(response); | |
} catch(e) { |
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
// SO 29378453 | |
import 'dart:async'; | |
main() { | |
// fails | |
// main1(); | |
main2(); | |
main3(); | |
} |
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
// SO 29334843 | |
main() { | |
var a = new A()..doSomething(); | |
print('`a:` $a'); | |
var b = new B()..doSomething(); | |
print('`b:` $b'); | |
var c = new C()..doSomething(); | |
print('`c:` $c'); | |
} |
OlderNewer