Skip to content

Instantly share code, notes, and snippets.

View Ayubur's full-sized avatar
🎯
Focusing

Ayubur Rahaman Ayubur

🎯
Focusing
  • Dhaka, Bangladesh
  • 10:16 (UTC -12:00)
View GitHub Profile
@Ayubur
Ayubur / RNSemiCircularProgressBar.js
Last active April 20, 2024 07:28
React Native Semi Circular Progress bar
import React, { useEffect, useState } from 'react'
import { Animated, View, StyleSheet, ViewPropTypes } from 'react-native'
const CustomSemiCircleProgress = ({
children,
animationSpeed = 2,
initialPercentage = 0,
percentage = 10,
minValue,
@Ayubur
Ayubur / upload.php
Last active August 9, 2021 05:58
PHP Single Image Upload REST API
<?php
// Include the database configuration file
include '/server/connection.php';
if(is_uploaded_file($_FILES['file']['tmp_name'])){
// File upload path
$targetDir = "../uploads/";
$file=$_FILES['file']['tmp_name'];
@Ayubur
Ayubur / mobileNumberValidator.js
Last active February 9, 2023 15:20
Javascript mobile number validation RegExp example
//RegExp of mobile number validtion
let countryCode = '880'; //mobile country code
let numberLength=10; //length of mobile number
let mobilePattern = `^((\\+${countryCode}-?)|0)?[0-9]{${numberLength.toString()}}$`;