This file contains hidden or 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
export default ({options = {}}) => { | |
const { | |
min = Number.MAX_SAFE_INTEGER, | |
max = Number.MIN_SAFE_INTEGER, | |
step = 1, | |
} = options; | |
return `Range between ${min} and ${max} with a step of ${step}`; | |
}; |
This file contains hidden or 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
"use strict"; | |
import React, {Component} from 'react'; | |
import calcContentHeight from './dom-textarea-measure'; | |
class AutogrowingTextarea extends Component { | |
constructor(props) { | |
this.props = props; | |
this.state = {}; | |
this.textareaProps = sanitizeChildProps(props); |
This file contains hidden or 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:async'; | |
import 'dart:html'; | |
import 'package:web_ui/web_ui.dart'; | |
import 'package:escape_handler/escape_handler.dart'; | |
class State { | |
static const ACTIVE = const State._(0); | |
static const INACTIVE = const State._(1); |
This file contains hidden or 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:async'; | |
import 'package:polymer/polymer.dart'; | |
import 'package:observe/observe.dart'; | |
class CountdownClock extends CustomElement with ObservableMixin { | |
static final oneSecond = new Duration(seconds: 1); | |
@observable var timeLeft = new Duration(seconds: 72); | |
/* |
This file contains hidden or 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 'package:mdv/mdv.dart' as mdv; | |
void main() { | |
mdv.initialize(); | |
} |
This file contains hidden or 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"> | |
<link rel="import" href="countdown_clock.html"> | |
</head> | |
<body> | |
<h1>Alarm</h1> | |
<div is="countdown-clock"></div> | |
<script type="application/dart" src="alarm.dart"></script> |
This file contains hidden or 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
void main() { | |
} |
This file contains hidden or 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
#!/usr/bin/env dart | |
import 'dart:io'; | |
import 'dart:async'; | |
main() { | |
// find and run Dartium with type checks and asserts enabled | |
var whichDart = Process.run('which', ['dart']); | |
whichDart.then((command) { | |
var dartiumExecutable = new Path(command.stdout).join(new Path('../../../chromium/Chromium.app/Contents/MacOS/Chromium')); |
This file contains hidden or 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
<x-secret placeholder="Choose a Password"></x-secret> |
This file contains hidden or 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
library cookie; | |
import 'dart:html'; | |
/* | |
* dart document.cookie lib | |
* | |
* ported from | |
* http://www.quirksmode.org/js/cookies.html | |
* |