Skip to content

Instantly share code, notes, and snippets.

View NerdFaisal404's full-sized avatar
🎯
Focusing

Faisal Ahmed NerdFaisal404

🎯
Focusing
View GitHub Profile

To build the same functionality using Laravel (a PHP framework) for the backend and React for the frontend, the steps and structure change slightly. Below is the breakdown of how to create a Laravel application that syncs data from Printify, displays it, and exports that data to an Etsy store.

Prerequisites

  • Knowledge Required: PHP, Laravel, JavaScript, React, REST APIs, and basic database management.
  • Tools Required: Composer (for Laravel), Node.js, Laravel, React, Axios (for API calls), MySQL or other relational databases, Printify API keys, Etsy API keys.

Project Structure

my-laravel-app/
│
@NerdFaisal404
NerdFaisal404 / inactivity_detector.dart
Created August 14, 2024 08:04 — forked from TesteurManiak/inactivity_detector.dart
A widget that will detect inactivity of the user.
import 'package:async/async.dart';
import 'package:flutter/material.dart';
final navigatorKey = GlobalKey<NavigatorState>();
class InactivityObserver extends StatefulWidget {
const InactivityObserver({
super.key,
required this.inactivityTimeout,
required this.child,
@NerdFaisal404
NerdFaisal404 / Device.java
Created March 8, 2024 06:05 — forked from hormesiel/Device.java
How to get an Android device's serial number, visible to the user in "Settings > About phone/tablet/device > Status > Serial number".
import android.os.Build;
import java.lang.reflect.Method;
public class Device {
/**
* @return The device's serial number, visible to the user in {@code Settings > About phone/tablet/device > Status
* > Serial number}, or {@code null} if the serial number couldn't be found
*/
public static String getSerialNumber() {
@NerdFaisal404
NerdFaisal404 / stripe-credit-card-numbers.md
Created February 21, 2022 07:35 — forked from rymawby/stripe-credit-card-numbers.md
Stripe test credit card numbers for use in development

#Test credit card numbers to use when developing with Stripe

4242424242424242 Visa

4012888888881881 Visa

4000056655665556 Visa (debit)

@NerdFaisal404
NerdFaisal404 / post_install.sh
Created February 3, 2022 03:19 — forked from waleedahmad/post_install.sh
Ubuntu post installation script for installing software of your choice.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y
import 'package:flutter/material.dart';
class ShowHidePasswordView extends StatefulWidget {
@override
_ShowHidePasswordViewState createState() => _ShowHidePasswordViewState();
}
class _ShowHidePasswordViewState extends State<ShowHidePasswordView> {
bool _passwordVisible;
TextEditingController _userPasswordController= TextEditingController();
Privacy Policy
infixsoft built the I’Emir app as a Free app. This SERVICE is provided by infixsoft at no cost and is intended for use as is.
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at I’Emir unless otherwise defined in this Privacy Policy.
Information Collection and Use
import 'dart:convert';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
State<StatefulWidget> createState() => MyHomePage();
@NerdFaisal404
NerdFaisal404 / Shimmers.dart
Created December 9, 2019 13:15
Different types of shimmers to show before loading a content on your flutter app
import 'package:flutter/material.dart';
import 'dart:async';
enum Type {services,servicesPreview,marketPreview,cards,comments,image,images,complex}
class Shimmer extends StatefulWidget {
final Type type;
const Shimmer({Key key, @required this.type}) : super(key: key);
@override
ShimmerState createState() => ShimmerState();
@NerdFaisal404
NerdFaisal404 / RNFontWeight.js
Created August 20, 2019 06:59
React Native font weight.
{ fontWeight: '100' }, // Thin
{ fontWeight: '200' }, // Ultra Light
{ fontWeight: '300' }, // Light
{ fontWeight: '400' }, // Regular
{ fontWeight: '500' }, // Medium
{ fontWeight: '600' }, // Semibold
{ fontWeight: '700' }, // Bold
{ fontWeight: '800' }, // Heavy
{ fontWeight: '900' }, // Black