Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
the machine stops the machine stops the machine stops

Yong Joseph Bakos ybakos

💭
the machine stops the machine stops the machine stops
View GitHub Profile
@ybakos
ybakos / main.ino
Last active Nov 30, 2020
CS 160 SparkFun Sandbox Project
View main.ino
// Project: Code controls circuitry.
// Outputs: lights
// Inputs: sensors (slider, microphone, light sensor)
//
// This program has three components:
// - light detection
// - temperature detection
// - sound detection
@ybakos
ybakos / dropdown_rating_form_field.dart
Last active Mar 1, 2020
A StatefulWidget that Wraps a DropdownButtonFormField so that the selected value displays
View dropdown_rating_form_field.dart
// (c) 2020 Yong Joseph Bakos. Use this freely.
// https://github.com/flutter/flutter/issues/27821
// Usage:
// DropdownRatingFormField(
// maxRating: 4,
// validator: (value) { /* ... */ },
// onSaved: (value) { /* ... */ }
// );
import 'package:flutter/material.dart';
@ybakos
ybakos / main.dart
Created Feb 17, 2020
CS 492 Week 8 Exploration 5 Exercise SQLite
View main.dart
// Week 8 Exploration 5
void main() {
runApp(App());
}
class App {
}
@ybakos
ybakos / main.dart
Created Feb 17, 2020
CS 492 Week 8 Exploration 4 Exercise Files
View main.dart
// Week 8 Exploration 4
void main() {
runApp(App());
}
class App {
}
@ybakos
ybakos / main.dart
Created Feb 17, 2020
CS 492 Week 8 Exploration 3 Exercise Shared Preferences
View main.dart
// Week 8 Exploration 3
void main() {
runApp(App());
}
class App {
}
@ybakos
ybakos / main.dart
Last active Feb 24, 2020
CS 492 Week 8 Exploration 2 Exercise Async
View main.dart
void main() {
print('a');
// TODO: Do the same work, but without the use of `go`.
go().then( (value) {
print(value);
});
print('b');
}
Future<int> go() {
@ybakos
ybakos / main.dart
Last active Feb 24, 2020
CS 492 Week 8 Exploration 1 Exercise State
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget { // TODO: Convert to StatefulWidget
Widget build(BuildContext context) {
return MaterialApp(
title: 'Example',
@ybakos
ybakos / main.dart
Last active Feb 14, 2020
CS 492 Week 7 Exploration 2 Exercise Navigation
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
// TODO: Declare a Map containing two routes,
// one for Exercise and one for Alpha.
@ybakos
ybakos / main.dart
Last active Feb 14, 2020
CS 492 Week 7 Exploration 3 Exercise Forms
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
@ybakos
ybakos / main.dart
Last active Feb 14, 2020
CS 492 Week 7 Exploration 4 Exercise ListView
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatefulWidget {
@override
State createState() => AppState();
}
class AppState extends State<App> {
You can’t perform that action at this time.