Skip to content

Instantly share code, notes, and snippets.

View Shakil-Shahadat's full-sized avatar
🏠
Working from home

Shakil Shahadat Shakil-Shahadat

🏠
Working from home
View GitHub Profile
@Shakil-Shahadat
Shakil-Shahadat / index.html
Created September 20, 2024 08:46
★ Miscellaneous HTML Codes
<!-- Spell Check, Content Editable, Auto Focus -->
<input type="text" spellcheck="false" contenteditable autofocus>
@Shakil-Shahadat
Shakil-Shahadat / Bengali.tex
Last active June 23, 2024 22:29
✓ ল্যাটেক্সে বাংলা ব্যবহারের উদাহরণ
\documentclass[a4paper,11pt]{article}
% Use Bengali
% Must use XeLaTeX or LuaLaTeX compiler
\usepackage{polyglossia}
\setmainlanguage{english}
\newfontfamily\englishfont{Segoe UI}
% \setmainfont{Noto Serif}
% \setsansfont{Noto Sans}
% \setmonofont{Noto Mono}
@Shakil-Shahadat
Shakil-Shahadat / index.php
Last active June 23, 2024 22:30
✓ Minimalist Bootstrap Tabs
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Repeated Tasks</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
@Shakil-Shahadat
Shakil-Shahadat / regex.js
Last active June 20, 2024 18:51
[ Delete ] Regex in JavaScript
// Test the existance of a string
let myString = 'Hello, World!';
let myRegex = /Hello/;
let result = myRegex.test( myString );
console.log( result );
// Extract a part of a string
let myString = 'Hello, World!';
let myRegex = /Hello/;
let result = myString.match( myRegex );
@Shakil-Shahadat
Shakil-Shahadat / newPage.dart
Last active June 23, 2024 22:30
✓ New Page in Dart
class newPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(''),
centerTitle: true,
), // AppBar
body: SingleChildScrollView(
@Shakil-Shahadat
Shakil-Shahadat / sync a fork.txt
Last active June 23, 2024 22:28
✓ Steps to sync a forked repository
// Check if original remote repository is already added or not
git remote -v
// Output
origin https://github.com/YOUR_NAME/REPO_NAME.git (fetch)
origin https://github.com/YOUR_NAME/REPO_NAME.git (pull)
upstream https://github.com/ORGINAL_USER/REPO_NAME.git (fetch)
upstream https://github.com/ORGINAL_USER/REPO_NAME.git (push)
// If it only shows origin, original remote repo is not added
// If not, add it
@Shakil-Shahadat
Shakil-Shahadat / .gitignore
Last active June 23, 2024 22:32
✓ .gitignore file for Tex files
*.aux
*.log
*.out
*.pdf
*.synctex.gz
*.toc
@Shakil-Shahadat
Shakil-Shahadat / composer.json
Last active November 3, 2023 15:16
[ Obsolete ] composer.json file to solve phpmyadmin compatibility problem with PHP 8
{
"name": "phpmyadmin/phpmyadmin",
"type": "project",
"description": "A web interface for MySQL and MariaDB",
"keywords": ["phpmyadmin","mysql","web"],
"homepage": "https://www.phpmyadmin.net/",
"support": {
"forum": "https://www.phpmyadmin.net/support/",
"issues": "https://github.com/phpmyadmin/phpmyadmin/issues",
"wiki": "https://wiki.phpmyadmin.net/",
@Shakil-Shahadat
Shakil-Shahadat / miscellaneous.php
Last active June 23, 2024 23:15
★ Miscellaneous PHP Codes
<?php
//-------------------------------------------------------
// Send Email
//-------------------------------------------------------
$to = 'test@example.com';
$subject = 'Test mail';
$message = 'Hello! This is a simple email message.';
$from = 'someone@example.com';
@Shakil-Shahadat
Shakil-Shahadat / Months.js
Last active June 20, 2024 19:00
[ Delete ] A list of Months in JS Array
months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ];