ng new ProjectName npm i bootstrap npm i font-awesome
"./node_modules/bootstrap/dist/css/bootstrap.min.css", "./node_modules/font-awesome/css/font-awesome.min.css",
"bootstrap": "^5.3.3", "font-awesome": "^4.7.0",
ng new ProjectName npm i bootstrap npm i font-awesome
"./node_modules/bootstrap/dist/css/bootstrap.min.css", "./node_modules/font-awesome/css/font-awesome.min.css",
"bootstrap": "^5.3.3", "font-awesome": "^4.7.0",
To configure PostgreSQL to start automatically on system boot on your Mac, you can use launchd
, which is the service management framework used by macOS. Here's how you can set it up:
You need to create a property list (plist) file that defines the behavior of the PostgreSQL service.
/Library/LaunchDaemons/
directory. You will need superuser privileges to create a file in this directory.sudo nano /Library/LaunchDaemons/com.postgresql.postgres.plist
Configure login Apple ID | |
Prerequisites | |
Before you can start integrating (or even testing) Sign in with Apple you need a paid membership to the Apple Developer Program. Sign in with Apple is one of the restricted services which is not available for free with just an Apple ID (source). | |
Setup | |
Register an App ID | |
If you have not one yet, create a new one at https://developer.apple.com/account/resources/identifiers/list/bundleId following these steps: | |
Click “Register an App ID” | |
In the wizard select “App IDs”, click “Continue” |
// import 'dart:developer' as devtools show log; | |
import 'package:flutter/foundation.dart'; | |
// call log on string and pass StackTrace if want file Name --> "here is log message".log(); | |
/// Extension on Object to enable conditional logging in debug mode. | |
extension Log on Object { | |
void log() { | |
if (kDebugMode) { |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
// https://gist.github.com/Esgrima/c0d4bff4b0d3909daf8994410cd659ce | |
// https://dartpad.dev/c0d4bff4b0d3909daf8994410cd659ce | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:boolean_selector/boolean_selector.dart'; | |
// (TODO: Tip # 1) Consider making frequently used variables/values constants | |
const _fooConst1 = ''; | |
const _fooConst2 = ''; |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
class ContactBook { | |
ContactBook._sharedInstance(); | |
static final ContactBook _shared = ContactBook._sharedInstance(); | |
factory ContactBook() => _shared; | |
} |
class LoginApi implements LoginApiProtocol { | |
const LoginApi._sharedInstance(); | |
static const LoginApi _shared = LoginApi._sharedInstance(); | |
factory LoginApi.instance() => _shared; | |
@override | |
Future<LoginHandle?> login( | |
{required String email, required String password}) { |
[ | |
{ | |
"name": "Foo 2", | |
"age": 20 | |
}, | |
{ | |
"name": "Foo 2", | |
"age": 20 | |
}, | |
{ |