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 / SpacePlusShooterGame.swift
Created January 3, 2026 15:12
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.swift
Created January 3, 2026 14:11
Hero Brain AR is an educational augmented reality mobile application that visualizes the human brain in 3D. Users can explore different brain regions interactively and learn their functions through real-time AR experiences built with ARKit and RealityKit. Key features: 3D interactive brain model Tap-based exploration of brain regions Educational…
//
// 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>";