Skip to content

Instantly share code, notes, and snippets.

View thecodermehedi's full-sized avatar
🧑‍💻
Solo Levelling

Mehedi Hasan thecodermehedi

🧑‍💻
Solo Levelling
View GitHub Profile
@thecodermehedi
thecodermehedi / css-media-queries-cheat-sheet.css
Created July 20, 2023 06:32 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
[
{
"id": 1,
"name": "Watch",
"price": "$19.99",
"brand": "Rolex"
},
{
"id": 2,
"name": "Sunglasses",
@thecodermehedi
thecodermehedi / blogsbymehedi.json
Last active September 13, 2023 17:36
mock-blog-post-data
[
{
"id": 1,
"coverImage": "https://i.imgur.com/KFPqtc4.jpg",
"userImage": "https://i.imgur.com/6bWEcgc.png",
"userName": "Mehedi Hasan",
"postDate": "Mar 14",
"title": "Introduction to JavaScript",
"tags": ["#JavaScript", "#Programming", "#WebDev"],
"readingTime": 10
@thecodermehedi
thecodermehedi / books.json
Last active September 14, 2023 13:06
bangla-programming-books-by-jhanakar-mahabub-from-rokomari.com-real-api-data-collected-in-14-sep-2023-at-04:02PM
[
{
"bookTitle": "হাবলুদের জন্য প্রোগ্রামিং",
"bookAuthor": "ঝংকার মাহবুব",
"bookPrice": "TK. 300",
"offerPrice": "TK. 225",
"authorImage": "https://i.imgur.com/gYfE1O8.jpg",
"bookCover": "https://ds.rokomari.store/rokomari110/ProductNew20190903/130X186/00ea58560_112222.jpg"
},
{
@thecodermehedi
thecodermehedi / data.json
Last active September 25, 2023 13:22
givingtree-mockdata
[
{
"id": "1",
"picture": "https://i.imgur.com/NdGs6hs.jpg",
"title": "Helping Hands Foundation",
"category": "Health",
"categoryBg": "rgba(0, 82, 255, 0.2)",
"cardBg": "rgba(0, 82, 255, 0.15)",
"textColor": "rgba(0, 82, 255, 1)",
"donateButtonBg": "rgba(0, 82, 255, 1)",
@thecodermehedi
thecodermehedi / vercel-client.json
Last active June 23, 2024 16:40
vercel configuration file for deploying client ( frontend ) to vercel
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]
}
@thecodermehedi
thecodermehedi / vercel-server.json
Last active December 9, 2024 02:40
vercel configuration file for deploying server ( backend ) to vercel
{
"version": 2,
"builds": [
{
"src": "build/index.js",
"use": "@vercel/node"
}
],
"routes": [
{
@thecodermehedi
thecodermehedi / geocode.json
Created January 23, 2024 06:18
country code with dial code and flag
[ { "name": "Afghanistan", "dial_code": "+93", "code": "AF", "flag": "🇦🇫" }, { "name": "Albania", "dial_code": "+355", "code": "AL", "flag": "🇦🇱" }, { "name": "Algeria", "dial_code": "+213", "code": "DZ", "flag": "🇩🇿" }, { "name": "AmericanSamoa", "dial_code": "+1684", "code": "AS", "flag": "🇦🇸" }, { "name": "Andorra", "dial_code": "+376", "code": "AD", "flag": "🇦🇩" }, { "name": "Angola", "dial_code": "+244", "code": "AO", "flag": "🇦🇴" }, { "name": "Anguilla", "dial_code": "+1264", "code": "AI", "flag": "🇦🇮" }, { "name": "Antarctica", "dial_code": "+672", "code": "AQ", "flag": "🇦🇶" }, { "name": "Antigua and Barbuda", "dial_code": "+1268", "code": "AG", "flag": "🇦🇬" }, { "name": "Argentina", "dial_code": "+54", "code": "AR", "flag": "🇦🇷" }, { "name": "Armenia", "dial_code": "+374", "code": "AM", "flag": "🇦🇲" }, { "name": "Aruba", "dial_code": "+297", "code": "AW", "flag": "🇦🇼" }, { "name": "Australia", "dial_code": "+61", "code": "AU", "preferred": true, "flag": "🇦🇺" }, { "name": "Austria", "dial_code": "+43",
@thecodermehedi
thecodermehedi / isPalindrome.js
Last active January 24, 2024 05:11
isPalindrome is a javascript function that takes a string as input and returns true if the string is a palindrome otherwise return false. A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward, ignoring punctuation, case, and spacing.
const isPalindrome = (string) => {
// replacing non-alphanumeric characters with space and converting to lowercase
cleanString = string.replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
// reversing the string (splitting it into an array, reversing the array, and joining it back into a string)
reversedString = cleanString.split("").reverse().join("");
// comparing the reversed string with the original cleaned string and returning true or false
return cleanString === reversedString;

How a Software Should Start


SDLC Phases

  1. Planning