Skip to content

Instantly share code, notes, and snippets.

View YamatoDX's full-sized avatar
🍰

Md Shadman Matin (Piyal) YamatoDX

🍰
View GitHub Profile
@YamatoDX
YamatoDX / CountContextDemo.jsx
Last active April 13, 2025 20:58
Using Firebae v9 with NextJS
// count-context.jsx
import {createContext, useState} from "react"
export const CountContext = createContext(null)
export default function CountContextProvider({children}){
const [state, setState] = useState(0)
return <CountContext.Provider value={{state, setState}}>
{children}
@YamatoDX
YamatoDX / inputTaker.py
Last active January 16, 2023 13:50
palindrome code with testing
while True:
myInput = input("Enter your string please: \n");
if(myInput.lower() == "exit"):
print("Exiting programm...............");
break;
result = palindromeWord(myInput)
if result == True:
print(f'{myInput} is palindrome')
elif result == False:
print(f'{myInput} is not a palindrome')