I hereby claim:
- I am butlermatt on github.
- I am butlermatt (https://keybase.io/butlermatt) on keybase.
- I have a public key whose fingerprint is 9164 A4E5 15F8 6DED 695F 9983 AD16 6496 C4CB D298
To claim this, I am signing this object:
import 'dart:io'; | |
import 'dart:async'; | |
import 'dart:math'; | |
// The following function is part of a third-party package that you can't touch. | |
Future doCoolStuff() { | |
var completer = new Completer(); | |
// Sometimes bad things happen. | |
if (new Random().nextBool()) { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sample app</title> | |
<link rel="stylesheet" href="attributes_ready_bug.css"> | |
<link rel="import" href="ready_bug.html"> | |
<link rel="import" href="my_element.html"> | |
<script type="application/dart">export 'package:polymer/init.dart';</script> |
#import('dart:html'); | |
class SVGSamples { | |
void run() { | |
drawlines(); | |
} | |
void drawlines() { | |
final int maxY = 250; |
import 'dart:html'; | |
import 'package:polymer/polymer.dart'; | |
/** | |
* A Polymer click counter element. | |
*/ | |
@CustomTag('click-counter') | |
class ClickCounter extends PolymerElement { | |
@observable String name = ''; |
import 'package:mongo_dart/mongo_dart.dart'; | |
void main() { | |
var db = new Db('mongodb://127.0.0.1/testdb'); | |
print('Opening database'); | |
db.open().then((_) { | |
var coll = db.collection('test'); | |
print('Inserting'); | |
return coll.insert({'one':'test'}); |
import 'dart:math'; | |
void main() { | |
var tm = new TicketManager(); | |
tm.buyTicket('WeyLand-Yutani', 50000); | |
tm.buyTicket('srolls', 10000); | |
tm.drawTicket(); | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<link rel="stylesheet" href="packages/mdl/assets/styles/material.min.css"> | |
</head> | |
<body> | |
<button class="mdl-button mdl-js-button mdl-button--raised" id="open">Open Dialog</button> | |
<script type="application/dart" src="main.dart"></script> |
name: sample_responder | |
version: 0.0.1 | |
description: A simple example of a DSLink Responder. | |
author: Matthew Butler <m.butler@dglogik.com> | |
dependencies: | |
dslink: | |
git: git://github.com/IOT-DSA/sdk-dslink-dart.git | |
environment: | |
sdk: ^1.12.0 |
I hereby claim:
To claim this, I am signing this object:
import 'dart:async'; | |
Future<Null> main() async { | |
var ts = new Stopwatch(); | |
ts.start(); | |
var sum = await awaitLoop(); | |
print('Sum is: $sum'); | |
ts.stop(); | |
print('Await took: ${ts.elapsed}'); | |