Skip to content

Instantly share code, notes, and snippets.

View Mohammadgeek's full-sized avatar
🐒
Working from home

Mohammadreza Helali Mohammadgeek

🐒
Working from home
View GitHub Profile
@Mohammadgeek
Mohammadgeek / UART.py
Created March 6, 2025 09:33
UART connection between rp pico with nodemcu
from machine import UART, Pin
# Initialize UART on GPIO 0 (RX) and GPIO 1 (TX)
uart = UART(1,115200, tx=Pin(8), rx=Pin(9))
try:
while True:
print("Running... Press Ctrl+C to stop")
data = uart.read()
print("Received from NodeMCU:", data)
@Mohammadgeek
Mohammadgeek / create_price_item.js
Last active May 29, 2023 14:37
create element object assign
function create_price_item(){
let tbody = document.querySelector('tbody');
let thead = document.querySelector('thead');
let div_price = document.createElement('div');
const ELNew = (tag, prop,) => Object.assign(document.createElement(tag), prop,);
console.log('created price value product!')
const userCorrectAnswers = [
ELNew("div", {textContent:"120$"},),
@Mohammadgeek
Mohammadgeek / gausspulse.py
Created May 27, 2023 14:04
gausspulse with scipy
import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
t = np.linspace(-1,3,2 * 100, endpoint = False)
i,q,e = signal.gausspulse(t,fc = 5, retquad=True, retenv=True)
plt.plot(t,i,t,q,t,e)
plt.xlabel('time')
@Mohammadgeek
Mohammadgeek / style.css
Created April 13, 2023 12:57
first tailwindcss skills from simple saller computer shop
@tailwind base;
@tailwind components;
@tailwind utilities;
body{
@apply bg-slate-300
}
ul li{
<div class="owl-slider">
<div id="carousel" class="owl-carousel">
<div class="item">
<img src="https://cdn.europosters.eu/image/1300/zen-nature-i49609.jpg" alt="1000X1000">
</div>
<div class="item">
<img src="https://cutewallpaper.org/21/anime-trees-background/Anime-Tree-Background-98-images-in-Collection-Page-3.jpg" alt="">
</div>
<div class="item">
<img src="https://cdn.europosters.eu/image/1300/zen-nature-i49609.jpg" alt="">
@Mohammadgeek
Mohammadgeek / index.html
Created April 2, 2023 13:14
toutrial_webpage
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body class="default">
<nav class="border-dubble h-16 border-b-2 border-yellow-400 bg-gray-600">
@Mohammadgeek
Mohammadgeek / index.html
Created March 30, 2023 11:44
Regex cheatsheet
<h1>Regex cheatsheet</h1>
<input type = "text" id = "inpvalue" placeholder = "valid entery string ">
@Mohammadgeek
Mohammadgeek / index.html
Created February 26, 2023 07:56
Snake 2D (Js pure)
<html>
<body class = "start">
<h1>snake 2D game</h1>
<div class="game-body">
<div id="score">0</div>
<i id = "play-icon" class="fa fa-play" aria-hidden="true"></i>
<canvas id="canvas-game" width="400" height="400"></canvas>
</div>
</body>
</html>
@Mohammadgeek
Mohammadgeek / index.html
Created February 17, 2023 07:09
Snake 2D (Js pure)
<html>
<body class = "start">
<h1>snake 2D game</h1>
<div class="game-body">
<div id="score">0</div>
<i id = "play-icon" class="fa fa-play" aria-hidden="true"></i>
<canvas id="canvas-game" width="400" height="400"></canvas>
</div>
</body>
</html>
@Mohammadgeek
Mohammadgeek / img-zoom-2x.markdown
Last active January 22, 2023 08:25
img zoom 2x