VSCode Remote Containers CLI.alfredworkflow.zip
- Click 「Configure workflow and variables」
VSCode Remote Containers CLI.alfredworkflow.zip
| // root build.gradle | |
| dependencies { | |
| // Add the google services classpath | |
| classpath 'com.google.gms:google-services:4.3.2' | |
| } | |
| // app/build.gradle | |
| // ADD THIS AT THE BOTTOM | |
| apply plugin: 'com.google.gms.google-services' |
https://pub.dev/documentation/riverpod/latest/all/FutureProvider-class.html
final futureProvider1 = FutureProvider<Model>((_) async {
final model = await AsyncFunc();| if [ `git branch --list $branch_name` ]; then | |
| echo "Branch name $branch_name already exists." | |
| else | |
| echo "Branch named $branch_name does not exist" | |
| fi |
| import UIKit | |
| class ItemTableViewCell: UITableViewCell { | |
| @IBOutlet weak var collectionView: UICollectionView! { | |
| didSet { | |
| let nib = UINib(nibName: "ItemCollectionViewCell", bundle: nil) | |
| collectionView.register(nib, forCellWithReuseIdentifier: "ItemCollectionViewCell") | |
| } | |
| } |
| // legacy | |
| public boolean onKeyDown(int keyCode, KeyEvent event) { | |
| if (keyCode == KeyEvent.KEYCODE_BACK){ | |
| // do something... | |
| } else { | |
| return super.onKeyDown(keyCode, event); | |
| } | |
| } |
| import APIKit | |
| import Foundation | |
| protocol APIRequest: Request {} | |
| // https://github.com/ishkawa/APIKit/issues/121 | |
| // https://stackoverflow.com/questions/47983026/error-copying-matching-creds-swift-rest-api-call | |
| extension APIRequest { | |
| var baseURL: URL { | |
| return URL(string: "https://api.xxx.com")! |