Everything moved to https://github.com/kevmoo/dash_skills
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() { | |
| // Define different scenarios for t5 using Dart records | |
| // (String name, double t5_value, String expected_behavior) | |
| final List<(String name, double t5Value, String expectedBehavior)> scenarios = | |
| [ | |
| ('t5 is a regular number', 1.0, 'Simplification is okay'), | |
| ( | |
| 't5 is positive Infinity', | |
| double.infinity, | |
| 'Simplification breaks due to NaN', |
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:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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 lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Kevin Moore - Google Product Manager for Flutter and Dart</title> | |
| <meta name="viewport" content="width=device-width"/> | |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> | |
| <meta content="Kevin Moore" property="og:title"/> | |
| <meta name="description" content="Product manager at Google working on Flutter and Dart."/> | |
| <meta content="https://kevmoo.com" property="og:url"/> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
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
| Graphics Feature Status | |
| ======================= | |
| * Canvas: Hardware accelerated | |
| * Canvas out-of-process rasterization: Enabled | |
| * Direct Rendering Display Compositor: Disabled | |
| * Compositing: Hardware accelerated | |
| * Multiple Raster Threads: Enabled | |
| * OpenGL: Enabled | |
| * Rasterization: Hardware accelerated | |
| * Raw Draw: Disabled |
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() { | |
| for (var i = 0; i < 64; i++) { | |
| print([i, 1 << i].join('\t')); | |
| } | |
| } |
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:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
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
| Future<void> main() async { | |
| for (var func in [goodCatch, badCatch]) { | |
| print('Running $func'); | |
| try { | |
| await func(); | |
| } catch (e) { | |
| print('Why was this not caught? $e'); | |
| } | |
| print(''); | |
| } |
I hereby claim:
- I am kevmoo on github.
- I am kevmoo (https://keybase.io/kevmoo) on keybase.
- I have a public key whose fingerprint is 3E10 4CD0 17C0 7669 9A18 5344 C5F5 2AE0 8C6D B0DF
To claim this, I am signing this object:
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
| // Copyright (c) 2018, 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. | |
| mixin AnswerMixin { | |
| int get answer => 42; | |
| @override | |
| String toString() => '[ $runtimeType ]'; | |
| } |
NewerOlder