A Pen by Mohammadreza on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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$"},), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
body{ | |
@apply bg-slate-300 | |
} | |
ul li{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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=""> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Regex cheatsheet</h1> | |
<input type = "text" id = "inpvalue" placeholder = "valid entery string "> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
NewerOlder