Skip to content

Instantly share code, notes, and snippets.

View jmrashed's full-sized avatar

Md Rasheduzzaman jmrashed

View GitHub Profile
@jmrashed
jmrashed / NumberFunction.php
Last active August 16, 2017 04:41
Number convert english to bangla
<?php
function bangla2englishNumber ($number){
$search_array= array("১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০");
$replace_array= array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
$en_number = str_replace($search_array, $replace_array, $number);
return $en_number;
}
@jmrashed
jmrashed / file-upload.php
Created August 16, 2017 04:46
File/ Image Upload in Laravel
<?php
public function uploadImage($fileInputField, $uploadFolder, $fileName = '', $create_thumb = false, $photoIndex = false) {
$uploadedFileName = '';
if (Input::file($fileInputField)) {
$fileName = preg_replace('/\s*/', '', $fileName);
@jmrashed
jmrashed / gist:51eacae2095eca0bfa4769f1b8add20c
Created July 28, 2023 00:08
Install Fonts in Ubuntu Using Terminal
Prepare the Font Files:
Before proceeding, make sure you have all the font files (in .ttf or .otf format) you want to install. Place all these font files in a single directory, for example, create a folder named "MyFonts" and place the font files inside it.
Open Terminal:
Press `Ctrl + Alt + T` to open a terminal window.
Navigate to the Font Directory:
Use the cd command to navigate to the directory where you placed all the font files. For example, if you placed them in the "MyFonts" folder under your home directory, use the following command:
`cd ~/MyFonts`