Skip to content

Instantly share code, notes, and snippets.

View kevmoo's full-sized avatar
🤘
Crankin!

Kevin Moore kevmoo

🤘
Crankin!
View GitHub Profile
@kevmoo
kevmoo / index.html
Created September 5, 2024 22:28
kevmoo.com
<!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>
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
@kevmoo
kevmoo / main.dart
Last active March 8, 2023 00:00
left shift dart2js
void main() {
for (var i = 0; i < 64; i++) {
print([i, 1 << i].join('\t'));
}
}
@kevmoo
kevmoo / main.dart
Created July 29, 2022 20:49
hopeful-tundra-5900
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
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('');
}

Keybase proof

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:

@kevmoo
kevmoo / main.dart
Created October 30, 2018 17:07
Dart 2.1 example of new mixin syntax for DartPad
// 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 ]';
}
@kevmoo
kevmoo / main.dart
Last active October 30, 2018 17:06
Dart 2.1 int-2-double example for DartPad
// 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.
import 'dart:math' as math;
class Circle {
double radius;
Circle(this.radius);
@kevmoo
kevmoo / index.html
Last active August 18, 2022 20:15 — forked from jcollins-g/index.html
Sunflower
<!-- Copyright 2011 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>Dr. Fibonacci's Sunflower Spectacular</h2>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@kevmoo
kevmoo / index.html
Created October 2, 2018 20:10 — forked from devoncarew/index.html
WebSocket test
<!-- Copyright 2015 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>A WebSocket test using echo.websocket.org</h2>
<br>
<p>Enter text to echo:</p>