This file contains 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 React, {Component} from 'react'; | |
import { connect } from 'react-redux'; | |
import classNames from 'classnames'; | |
import '@material/linear-progress/dist/mdc.linear-progress.css'; | |
class LinearProgress extends Component { | |
render() { | |
// Get state of linear progress to control its display |
This file contains 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
let myArray = ["beans", "soup", "peanuts", "artichokes"]; | |
myArray.reduce((promise, item) => { | |
return promise.then(() => { | |
return itemsPromise(item); | |
}); | |
}, Promise.resolve()).then(() => { | |
console.log("ALL DONE"); | |
}) |
This file contains 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:io'; | |
void main() { | |
performTasks(); | |
} | |
void performTasks() async { | |
task1(); | |
String task2Result = await task2(); | |
task3(task2Result); |
This file contains 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'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
/// Global Scaffold Messenger Key (SnackBars) | |
final GlobalKey<ScaffoldMessengerState> rootScaffoldMessengerKey = GlobalKey<ScaffoldMessengerState>(); | |
void main() { | |
runApp(MyApp()); | |
} |
This file contains 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
class Author { | |
final String id; | |
final String handle; | |
String name; | |
Author({ | |
required this.id, | |
required this.handle, |