Skip to content

Instantly share code, notes, and snippets.

View saaeiddev's full-sized avatar
🎯
Focusing

Amir Saeid Dehghan saaeiddev

🎯
Focusing
View GitHub Profile
@saaeiddev
saaeiddev / SpacePulseShooterGame.swift
Last active June 18, 2026 08:45
Space Pulse – A minimal top-down shooter game for iOS built with Swift and SpriteKit. Includes player movement, shooting mechanics, enemy spawning, collision detection, and scoring. Designed as a clean, single-scene project suitable for learning, prototyping, and portfolio showcase.
//
// GameScene.swift
// Space Pulse
//
// Created by Amir Saeid Dehghan
//
import SpriteKit
final class GameScene: SKScene, SKPhysicsContactDelegate {
@saaeiddev
saaeiddev / HeroBrainAR_Prototype.swift
Last active June 19, 2026 12:47
Hero Brain AR App Prototype : AR-based iOS prototype for neuroscience education built with ARKit and RealityKit. The app visualizes brain regions in augmented reality to create an interactive and immersive learning experience about human brain structure and function.
//
// ViewController.swift
// Hero Brain AR
//
// Created by Amir Saeid Dehghan
//
// This file controls the main AR experience of the app.
// این فایل تجربه اصلی واقعیت افزوده اپلیکیشن را مدیریت می‌کند.
//
@saaeiddev
saaeiddev / liquid-glass-ui-token-generator.js
Created January 2, 2026 12:52
Liquid Glass UI Token Generator A lightweight JavaScript utility that generates reusable design tokens for glassmorphism / liquid glass interfaces. It provides preset-based values for blur, opacity, background, border, shadow, and radius, making it easy to build consistent, futuristic UI design systems for web and app projects.
/**
* Liquid Glass UI Token Generator
* Author: Amir Saeid Dehghan
* Description: Generates reusable design tokens for Glassmorphism / Liquid Glass UI
*/
function generateLiquidGlassTokens({
level = "medium", // soft | medium | heavy
theme = "light" // light | dark
} = {}) {
@saaeiddev
saaeiddev / ViewController.swift
Created January 2, 2026 08:32
AR Brain Education App using ARKit + RealityKit in Swift. Shows 3D brain, labels brain regions, and provides neuroscientific educational info. Conceptually inspired by Brainapse. Developed by Amir Saeid Dehghan
//
// ViewController.swift
// ARBrainEducation
//
// Created by Amir Saeid Dehghan
//
import UIKit
import RealityKit
import ARKit
<?php
/* redirecting */
/* follow me on instagram : saaeid.dev
follow me on twitter : @metasaeid */
error_reporting(E_ALL ^ E_NOTICE);
$id = $_GET["id"];
<?php
session_start();
$_SESSION["b"] = 12;
$_SESSION["c"] = array(3 , 10 , 11 , 12 , 18);
print_r($_SESSION);
<?php
function Saeid_func($a , $b , $c , $d){
if($a > $b && $c > $d){
$a = $a * 2;
$b = $b / 2;
$x = $a + $b;
}
else{
$a = $a;
<?php
function My_func($a , $b , $c , $d , $e){
if($a > 20 && $b < 10){
$a = $a / 2;
$b = $b * 2;
}
else{
$a = $a;
<?php
$text = "Welcome to PHP !";
$a = urlencode($text);
$b = urldecode($a);
echo '<p>Original text: '.$text."</p>";
echo '<p>After urlencode: '.$a."</p>";