Skip to content

Instantly share code, notes, and snippets.

View NerdFaisal404's full-sized avatar
🎯
Focusing

Faisal Ahmed NerdFaisal404

🎯
Focusing
View GitHub Profile
package com.audacityit.jigglemed.ui.navigation;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.ColorRes;
import android.support.v4.app.Fragment;
package com.audacityit.jigglemed.ui.navigation;
import android.app.Activity;
import android.arch.lifecycle.ProcessLifecycleOwner;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.ColorRes;
@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
@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();
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();
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 'package:flutter/material.dart';
class ShowHidePasswordView extends StatefulWidget {
@override
_ShowHidePasswordViewState createState() => _ShowHidePasswordViewState();
}
class _ShowHidePasswordViewState extends State<ShowHidePasswordView> {
bool _passwordVisible;
TextEditingController _userPasswordController= TextEditingController();
@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
@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 / 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() {