Skip to content

Instantly share code, notes, and snippets.

View JaveedIshaq's full-sized avatar
🇵🇰
Passion to help others

Javeed Ishaq JaveedIshaq

🇵🇰
Passion to help others
View GitHub Profile
@JaveedIshaq
JaveedIshaq / code-editor-rules.md
Created December 17, 2024 08:40 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@JaveedIshaq
JaveedIshaq / code-editor-rules.md
Created December 17, 2024 08:40 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@JaveedIshaq
JaveedIshaq / generate_feature.sh
Created December 16, 2024 14:22
command-to-generate-feature-flutter
#!/bin/bash
# Check if feature name is provided
if [ -z "$1" ]; then
echo "Please provide a feature name"
echo "Usage: ./generate_feature.sh <feature_name>"
exit 1
fi
# Convert feature name to lowercase and get capitalized version
// String? googleAccessToken;
// String? socialTokenIsAppleOrGoogle;
// String? appleIdToken;
// final SecureStorage _secureStorage = getIt<SecureStorage>();
// final Map<String, String> currency = {
// 'ko': 'KRW',
// 'en': 'USD',
// 'ja': 'JPY',
// };
[ +8 ms] D/permissions_handler(15229): No permissions found in manifest for: []1
[+1313 ms] W/ziparchive(15229): Unable to open
'/data/app/~~z5-gXzrek__ekp8WYWN1Vg==/com.google.android.trichromelibrary_672308633-1QguPKjeYlDJqZ6ZK1brZg==/base.dm': No such file or
directory
[ ] W/ziparchive(15229): Unable to open
'/data/app/~~z5-gXzrek__ekp8WYWN1Vg==/com.google.android.trichromelibrary_672308633-1QguPKjeYlDJqZ6ZK1brZg==/base.dm': No such file or
directory
[ ] W/com.kr.hideme(15229): Entry not found
[ +1 ms] D/nativeloader(15229): Configuring clns-8 for other apk
/data/app/~~z5-gXzrek__ekp8WYWN1Vg==/com.google.android.trichromelibrary_672308633-1QguPKjeYlDJqZ6ZK1brZg==/base.apk. target_sdk_version=34,
@JaveedIshaq
JaveedIshaq / ng-notes.md
Created September 11, 2024 04:22
Agular Commands and Notes

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:

1. Create a Launch Daemon Plist File

You need to create a property list (plist) file that defines the behavior of the PostgreSQL service.

  1. Open Terminal.
  2. Create a new plist file in the /Library/LaunchDaemons/ directory. You will need superuser privileges to create a file in this directory.
sudo nano /Library/LaunchDaemons/com.postgresql.postgres.plist
@JaveedIshaq
JaveedIshaq / configure-login-Apple-ID.txt
Created April 15, 2024 13:53
Configure login Apple ID
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”
@JaveedIshaq
JaveedIshaq / log_extension.dart
Last active April 1, 2024 03:29
Log Extension
// 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) {
@JaveedIshaq
JaveedIshaq / main.dart
Created August 15, 2023 09:51
Flutter Default Text Font Sizes and Font weight
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override