In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
import 'package:intl/intl.dart'; | |
import 'package:meta/meta.dart'; | |
void main() { | |
print(DateUtils.formatISOTime(DateTime.now())); | |
print(DateUtils.getCurrentISOTimeString()); | |
} | |
class DateUtils { |
## Flutter wrapper | |
-keep class io.flutter.app.** { *; } | |
-keep class io.flutter.plugin.** { *; } | |
-keep class io.flutter.util.** { *; } | |
-keep class io.flutter.view.** { *; } | |
-keep class io.flutter.** { *; } | |
-keep class io.flutter.plugins.** { *; } | |
# Basic ProGuard rules for Firebase Android SDK 2.0.0+ | |
-keep class com.firebase.** { *; } |
import 'package:firebase_storage/firebase_storage.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:meta/meta.dart'; | |
enum ImageDownloadState { Idle, GettingURL, Downloading, Done, Error } | |
class FirebaseStorageImage extends StatefulWidget { | |
/// The reference of the image that has to be loaded. | |
final StorageReference reference; | |
/// The widget that will be displayed when loading if no [placeholderImage] is set. |
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss |
#!/bin/bash | |
# Logout current GitHub credentials and remove global user.name, user.email | |
echo -e "host=github.com\nprotocol=https\n" | git credential-osxkeychain erase | |
git config --unset-all --global user.name | |
git config --unset-all --global user.email |
var express = require('express'); | |
var http = require('http'); | |
var app = express(); | |
// Simple user controller implementation. | |
var users = [ | |
{ username: 'jamsesso', age: 20, gender: 'M' }, | |
{ username: 'bettycrocker', age: 20, gender: 'F' } | |
]; |