Skip to content

Instantly share code, notes, and snippets.

View amanat361's full-sized avatar

Samin Amanat amanat361

View GitHub Profile
@amanat361
amanat361 / SimpleTextCube.tsx
Created August 25, 2025 20:22
Simpler text cube with just random characters (implement your own props)
import React, { useState, useEffect } from ‘react’;
const TextCube = () => {
const [faceTexts, setFaceTexts] = useState([’’, ‘’, ‘’, ‘’, ‘’, ‘’]);
// Character sets for each face to make them visually distinct
const charSets = [
‘@#$%^&*()_+-={}[]|:;<>?,./~`!’, // Front
’XOXOXO#$%^&*’, // Right
‘01’, // Top
@amanat361
amanat361 / TextCube.tsx
Created August 25, 2025 20:17
3D cube for LLM streams
import React, { useState, useEffect, useRef } from ‘react’;
const TextCube = () => {
const [faceTexts, setFaceTexts] = useState([’’, ‘’, ‘’, ‘’, ‘’, ‘’]);
const [prompt, setPrompt] = useState(’’);
const [isGenerating, setIsGenerating] = useState(false);
const streamingIntervals = useRef([]);
// Maximum characters to display per face
const maxChars = 140;

Agent Guidelines for this project

Default to using Bun instead of Node.js.

  • Use bun <file> instead of node <file> or ts-node <file>
  • Use bun test instead of jest or vitest
  • Use bun build <file.html|file.ts|file.css> instead of webpack or esbuild
  • Use bun install instead of npm install or yarn install or pnpm install
  • Use bun run <script> instead of npm run <script> or yarn run <script> or pnpm run <script>
  • Bun automatically loads .env, so don't use dotenv.
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Samin Amanat",
"label": "Full Stack Software Developer",
"image": "https://i.imgur.com/HJA5Kg6.png",
"email": "contact@saminamanat.com",
"phone": "9254512502",
"url": "https://www.saminamanat.com",
"summary": "A proactive and organized individual with years of experience in software development and teaching; seeking a leadership position.",
@amanat361
amanat361 / main2_clean.cpp
Created February 3, 2017 05:05
Clean version of main2.cpp
//Samin Amanat
//Necessary things
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main() {
//declaring variables
@amanat361
amanat361 / main2.cpp
Created February 3, 2017 04:48
My amazing c++ code (2.0)
//WOOO SOURCE CODE!!!
//including stuffs
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main() {
//declaring variables
@amanat361
amanat361 / main.cpp
Last active February 1, 2017 03:55
Some starting C++ code
#include <iostream>
using namespace std;
int main() {
int rows;
do // input validation loop
{
cout << "Enter the number of rows (must be at least 2): ";
cin >> rows;
<!DOCTYPE html>
<html lang="en">
<head>
<title>Samin's Website</title>
<link rel="shortcut icon" href="favicon.ico?" type="image/x-icon" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<meta content='width=device-width, initial-scale=1' name='viewport'/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
<html>
<head>
<!--Title-->
<title>
Samin's Website
</title>
<link rel="stylesheet" type="text/css" href="home.css" />
</head>