(see YouTube channel for individual videos)
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
| class State { | |
| constructor(display, actors) { | |
| this.display = display; | |
| this.actors = actors; | |
| } | |
| update(time) { | |
| /** | |
| * provide an update ID to let actors update other actors only once |
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
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.googlemapspluginexample"> | |
| <!-- The INTERNET permission is required for development. Specifically, | |
| flutter needs it to communicate with the running application | |
| to allow setting breakpoints, to provide hot reload, etc. | |
| --> | |
| <uses-permission android:name="android.permission.INTERNET"/> | |
| <!-- io.flutter.app.FlutterApplication is an android.app.Application that |
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
| const {text} = activeEditor.document.lineAt(activeEditor.selection.active.line); |
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
| /// | |
| /// Flutter Captured Error Reporting | |
| /// Created by Simon Lightfoot | |
| /// | |
| /// Copyright (C) DevAngels Limited 2018 | |
| /// License: APACHE 2.0 - https://www.apache.org/licenses/LICENSE-2.0 | |
| /// | |
| import 'dart:async'; | |
| import 'dart:io'; | |
| import 'dart:ui' as ui show window; |
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 {React, Component} from 'react'; | |
| class LongPress extends Component { | |
| shouldShortPress = true; | |
| componentDidMount() { | |
| this.listenForTouch(); | |
| } | |
| componentWillUnmount() { |
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
| const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
| const asyncForEach = async (array, callback) => { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array) | |
| } | |
| } | |
| const start = async () => { | |
| await asyncForEach([1, 2, 3], async (num) => { | |
| await waitFor(50) |
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
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 12, | |
| // font family with optional fallbacks | |
| fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
| // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
| cursorColor: 'rgba(248,28,229,0.8)', |
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 {Injectable} from '@angular/core'; | |
| // Declare TabsService as a provider in app.module.ts | |
| // Inject TabsService in your class: constructor(public tabs: TabsService){} | |
| // Use the this.tabs.hide() or this.tabs.show() methods wherever you want | |
| @Injectable() | |
| export class TabsService { | |
| constructor() {} | |
| public hide() { |
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
| { | |
| "UF": [ | |
| {"nome": "Acre", "sigla": "AC"}, | |
| {"nome": "Alagoas", "sigla": "AL"}, | |
| {"nome": "Amapá", "sigla": "AP"}, | |
| {"nome": "Amazonas", "sigla": "AM"}, | |
| {"nome": "Bahia", "sigla": "BA"}, | |
| {"nome": "Ceará", "sigla": "CE"}, | |
| {"nome": "Distrito Federal", "sigla": "DF"}, | |
| {"nome": "Espírito Santo", "sigla": "ES"}, |
NewerOlder