Skip to content

Instantly share code, notes, and snippets.

View devoncarew's full-sized avatar

Devon Carew devoncarew

View GitHub Profile
{
"origin": "dartlab.org",
"url": "http://dartlab.org/#:gistId",
"history": [
"bf1af9b3c187997b573c"
]
}
@devoncarew
devoncarew / index.html
Last active August 29, 2015 14:25
Remove elements: todo with delete
<!-- Copyright (c) 2012, the Dart project authors. Please see the
AUTHORS file for details. All rights reserved. Use of this
source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!DOCTYPE html>
<html>
<head>
@devoncarew
devoncarew / dart-dev.json
Last active October 23, 2015 19:56 — forked from guillermooo/updateDartManifestForScoop.ps1
Update Dart manifest for Scoop
{
"version": "1.13.0-dev.7.3",
"license": "BSD",
"homepage": "https://www.dartlang.org/",
"extract_dir": "dart-sdk",
"env_add_path": [
"bin"
],
"architecture": {
"64bit": {
@devoncarew
devoncarew / widgets.json
Last active December 24, 2015 03:50
Flutter widget data encoded as json
{
"BottomSheet": {
"name": "BottomSheet",
"package": "material",
"parent": "StatefulComponent",
"properties": [
{
"name": "key",
"type": "Key"
},
Process: FlutterRunner [3179]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/B0484E69-8A54-4CCF-8804-4780BD7D5DD4/data/Containers/Bundle/Application/1C52B247-4BCF-4B6C-A7F2-34CCAF2423F0/Runner.app/FlutterRunner
Identifier: FlutterRunner
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [96631]
Responsible: FlutterRunner [3179]
User ID: 115869
Date/Time: 2016-01-29 01:36:38.726 -0800
TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (internal/child_process.js:274:26)
at Object.exports.spawn (child_process.js:351:9)
at BufferedProcess.module.exports.BufferedProcess.spawn (/Users/devoncarew/tools/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:188:44)
at new BufferedProcess (/Users/devoncarew/tools/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
at Function.new (/Users/devoncarew/projects/flutter/atom-flutter-dev/web/ddc/dev_compiler/runtime/dart/js.js:28:26)
at Function.create (/Users/devoncarew/projects/flutter/atom-flutter-dev/web/ddc/atom/atom.js:558:51)
at ProcessRunner.execStreaming (/Users/devoncarew/projects/flutter/atom-flutter-dev/web/ddc/atom/node/process.js:144:47)
at ProcessRunner.execSimple (/Users/devoncarew/projects/flutter/atom-flutter-dev/web/ddc/atom/node/process.js:137:27)
@devoncarew
devoncarew / setup.sh
Last active May 11, 2016 23:12
Flutter kiosk setup
#!/bin/bash
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
export FLUTTER_ROOT=$HOME/flutter
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:foo_bar/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(new MyApp());
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library core.event_bus;
import 'dart:async';
/**
* An event bus class. Clients can listen for classes of events, optionally
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* This library contains an implementation of the adaptable pattern.
*/
library core.adaptable;
// TODO: Add a static `adaptTo` method, and a way to register adapter factories.