Skip to content

Instantly share code, notes, and snippets.

View thbappy7706's full-sized avatar
💻
echo "Web Developer";

Tanvir Hossen Bappy thbappy7706

💻
echo "Web Developer";
View GitHub Profile
@thbappy7706
thbappy7706 / Tips.text
Created September 25, 2025 09:49
Ai Engineering Apps Topic
𝟏. 𝐒𝐭𝐚𝐭𝐞 𝐌𝐚𝐧𝐚𝐠𝐞𝐦𝐞𝐧𝐭 𝐅𝐮𝐧𝐝𝐚𝐦𝐞𝐧𝐭𝐚𝐥𝐬⁣
- Finite State Machines (FSM) basics⁣
- State vs. Context in agents⁣
- Context Engineering⁣
- Immutable state patterns⁣
- State persistence strategies⁣
𝟐. 𝐄𝐱𝐞𝐜𝐮𝐭𝐢𝐨𝐧 𝐌𝐨𝐝𝐞𝐥𝐬⁣
- Synchronous vs. Asynchronous execution⁣
- Streaming vs. Batch processing⁣
@thbappy7706
thbappy7706 / taildash.html
Created June 25, 2025 06:43
Basic Dashboard tailwind css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - CRUD Management</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script>
</head>
<body class="bg-gray-100">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap Drawer Form</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
/* Custom drawer width and transition */
@thbappy7706
thbappy7706 / sidebar.blade.php
Last active May 27, 2025 11:40
Laravel Livewire Starter Kit Collapsed Sidebar
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
<head>
@include('partials.head')
</head>
<body class="min-h-screen bg-white dark:bg-zinc-800">
<div x-data="{ open: true }" class="flex min-h-screen">
<!-- Sidebar -->
<div x-bind:class="open ? 'w-64' : 'w-16'"
class="transition-all duration-300 ease-in-out border-e border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900 sticky top-0 h-screen overflow-y-auto flex flex-col">
@thbappy7706
thbappy7706 / todo.html
Last active May 26, 2025 10:34
Todo App-Alpine Js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Todo App - Alpine.js</title>
<script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
@thbappy7706
thbappy7706 / speech.jsx
Created April 21, 2025 12:10
React speech to text
import React, { useState, useEffect, useRef } from 'react';
const SpeechRecognition =
window.SpeechRecognition || window.webkitSpeechRecognition;
const recognition = SpeechRecognition ? new SpeechRecognition() : null;
export default function App() {
const [listening, setListening] = useState(false);
const [transcript, setTranscript] = useState('');
@thbappy7706
thbappy7706 / iterations.php
Last active November 24, 2024 10:09
1_billion_loop_iterations.php
<?php
ini_set('memory_limit', '2048M');
set_time_limit(0);
$startTime = microtime(true);
$count = 0;
$outerLimit = 1000; // Outer loop
$innerLimit = 1000000; // Inner loop
for ($i = 0; $i < $outerLimit; $i++) {
@thbappy7706
thbappy7706 / gist:cdea258bbab40c437f424a1a9c72a0b3
Last active September 6, 2024 16:33
Alpine Tailwind Sidebar Navbar
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard Layout</title>
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/heroicons/1.0.6/outline/heroicons-outline.min.css">
// First we need to access the Folder
//Go to the git-test folder in your cmd window/terminal and type the following at the prompt to initialize the folder as a Git repository:
1. git init
//Type the following at the prompt to check your Git repository's status:
2. git status
//To add files to the staging area of your Git repository, type:
3. git add .
@thbappy7706
thbappy7706 / routes.blade.php
Created December 24, 2019 09:29
This is a laravel route example. We can View kind of HTML page from the "resources/views/name.blade.php"
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!