Explorer
backend_django/
views.py
models.py
frontend_flutter/
main.dart
portfolio_screen.dart
devops_infra/
docker-compose.yml
nginx.conf
bi_analytics/
financial_metrics.dax
user_retention.sql
Type to search files...
Source Control
Recent Commits
feat: optimized BI query performance
fix: docker container memory leak
refactor: decoupled API router from core middleware
chore: bumped flutter sdk to v3.19.4
docs: updated swagger OpenAPI spec for auth flow
perf: implemented redis caching for heavy endpoints
test: added e2e tests for checkout pipeline
style: standardized app theme with Material 3
Environment Variables
USER_ID: 9482
AUTH_TOKEN: "sk_live_..."
DEBUG: False
Active Nodes
node-alpha (healthy)
node-beta (healthy)
node-gamma (restarting...)
Database Connections
production_cluster
postgres_main
powerbi_gateway
Installed
Python
Microsoft
Flutter
Dart Code
Docker
Microsoft
Environment Config
COLOR_SCHEME
EDITOR_FONT_SIZE 13px
System Info
[SYSTEM INFORMATION]
--------------------
HOST_NAME: Mahdi Yaghoubi
ROLE: Full-Stack Developer & BI Expert
UPTIME_STATUS: Active / Open to Opportunities
LOC_ZONE: International Migration Branch
DEPENDENCIES: Python >= 3.10, Django, Flutter SDK, Docker, SQL/DAX
Webhook Payload (Contact)
main.dart
import 'package:flutter/material.dart';
import 'portfolio_screen.dart';

void main() {
  runApp(PortfolioApp());
}

class PortfolioApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Mahdi Yaghoubi',
      theme: ThemeData(
        colorSchemeSeed: Colors.blue,
      ),
      home: PortfolioScreen(),
      debugShowCheckedModeBanner: false,
    );
  }
}
import 'package:flutter/material.dart';

class PortfolioScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      appBar: _buildAppBar(),
      body: SingleChildScrollView(
        padding: EdgeInsets.all(16.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            _buildHeroSection(),
            SizedBox(height: 32),
            _buildExpertiseGrid(),
            SizedBox(height: 32),
            _buildExperienceTimeline(),
            SizedBox(height: 32),
            _buildConnectSection(),
          ],
        ),
      ),
    );
  }

  PreferredSizeWidget _buildAppBar() {
    return AppBar(
      backgroundColor: Colors.transparent,
      elevation: 0,
      title: Row(
        children: [
          CircleAvatar(backgroundImage: AssetImage('/assets/images/profile/profile.png')),
          SizedBox(width: 12),
          Text('Mahdi Yaghoubi'),
        ],
      ),
    );
  }

  Widget _buildHeroSection() {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Chip(label: Text('SOFTWARE ENGINEER & BI EXPERT')),
        SizedBox(height: 16),
        Text(
          'Engineering Scalable Solutions',
          style: TextStyle(fontSize: 36, fontWeight: FontWeight.bold),
        ),
        SizedBox(height: 16),
        Text(
          'Bridging the gap between complex data insights and high-performance full-stack applications.',
        ),
      ],
    );
  }

  Widget _buildExpertiseGrid() {
    return GridView.count(
      shrinkWrap: true,
      physics: NeverScrollableScrollPhysics(),
      crossAxisCount: 2,
      mainAxisSpacing: 16,
      crossAxisSpacing: 16,
      children: [
        _buildExpertiseCard('BI Analysis', 'Data Strategy', Icons.bar_chart),
        _buildExpertiseCard('Flutter Dev', 'Mobile Apps', Icons.smartphone),
        _buildExpertiseCard('Django', 'Backend Hub', Icons.dns),
        _buildExpertiseCard('DevOps', 'Cloud Infra', Icons.all_inclusive),
      ],
    );
  }

  Widget _buildExpertiseCard(String title, String subtitle, IconData icon) {
    return Container(
      padding: EdgeInsets.all(16),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(12),
        border: Border.all(color: Colors.grey[800]!),
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Icon(icon, color: Colors.purpleAccent),
          Spacer(),
          Text(title, style: TextStyle(fontWeight: FontWeight.bold)),
          Text(subtitle, style: TextStyle(color: Colors.grey)),
        ],
      ),
    );
  }

  Widget _buildExperienceTimeline() {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Text('PROFESSIONAL JOURNEY'),
        SizedBox(height: 16),
        _buildTimelineItem('PRESENT', 'Senior Full-stack Developer'),
        _buildTimelineItem('2021 — 2023', 'BI Analyst & Data Engineer'),
        _buildTimelineItem('2019 — 2021', 'Mobile App Specialist'),
      ],
    );
  }

  Widget _buildTimelineItem(String date, String role) {
    return Padding(
      padding: EdgeInsets.only(bottom: 16),
      child: Row(
        children: [
          Container(width: 12, height: 12, decoration: BoxDecoration(shape: BoxShape.circle, color: Colors.purpleAccent)),
          SizedBox(width: 16),
          Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Text(date, style: TextStyle(color: Colors.grey, fontSize: 12)),
              Text(role, style: TextStyle(fontWeight: FontWeight.bold)),
            ],
          ),
        ],
      ),
    );
  }

  Widget _buildConnectSection() {
    return Center(
      child: ElevatedButton.icon(
        onPressed: () {},
        icon: Icon(Icons.download),
        label: Text('Download Resume'),
      ),
    );
  }
}
name: mahdi_portfolio
description: A new Flutter project.

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2
from django.http import JsonResponse
from .models import AnalyticsData

def get_revenue_forecast(request):
    """
    Generates an optimized revenue forecast using LLM analysis.
    """
    data = AnalyticsData.objects.all().order_by('-date')[:30]
    processed_data = [d.to_dict() for d in data]
    
    # Simulated AI inference call
    forecast = AIModel.predict(processed_data)
    
    return JsonResponse({
        'status': 'success',
        'forecast': forecast
    })
from django.db import models

class AnalyticsData(models.Model):
    date = models.DateField(db_index=True)
    revenue = models.DecimalField(max_digits=12, decimal_places=2)
    users_active = models.IntegerField()
    
    class Meta:
        indexes = [
            models.Index(fields=['-date', 'revenue']),
        ]
        
    def to_dict(self):
        return {
            'date': self.date.isoformat(),
            'revenue': float(self.revenue),
            'users': self.users_active
        }
version: '3.8'

services:
  backend:
    build: .
    ports:
      - "8000:8000"
    environment:
      - DB_HOST=db
      - REDIS_URL=redis://cache:6379/0
    depends_on:
      - db
      - cache

  db:
    image: postgres:15-alpine
    volumes:
      - pgdata:/var/lib/postgresql/data
server {
    listen 80;
    server_name api.portfolio.com;

    location / {
        proxy_pass http://backend:8000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }

    location /static/ {
        alias /var/www/static/;
        expires 30d;
    }
}
DEFINE
  MEASURE Sales[YTD_Revenue] = 
    CALCULATE(
      SUM(Sales[Amount]),
      DATESYTD(Calendar[Date])
    )
    
  MEASURE Sales[Revenue_Growth_YoY] = 
    VAR CurrentYear = [YTD_Revenue]
    VAR PreviousYear = CALCULATE([YTD_Revenue], SAMEPERIODLASTYEAR(Calendar[Date]))
    RETURN
      DIVIDE(CurrentYear - PreviousYear, PreviousYear, 0)
WITH user_cohorts AS (
    SELECT 
        user_id,
        DATE_TRUNC('month', MIN(event_date)) AS cohort_month
    FROM events
    GROUP BY user_id
),
retention AS (
    SELECT 
        c.cohort_month,
        EXTRACT(MONTH FROM e.event_date) - EXTRACT(MONTH FROM c.cohort_month) AS months_later,
        COUNT(DISTINCT e.user_id) AS active_users
    FROM user_cohorts c
    JOIN events e ON c.user_id = e.user_id
    GROUP BY 1, 2
)
SELECT * FROM retention ORDER BY cohort_month, months_later;
--- a/backend_django/views.py
+++ b/backend_django/views.py
@@ -42,7 +42,7 @@
     def get_revenue_forecast(request):
-        # Legacy implementation
-        forecast = run_old_model(data)
+        # Optimized AI implementation
+        forecast = AIModel.predict(processed_data)
         return JsonResponse({'forecast': forecast})
--- a/bi_analytics/financial_metrics.dax
+++ b/bi_analytics/financial_metrics.dax
@@ -2,3 +2,3 @@
   MEASURE Sales[YTD_Revenue] = 
-    SUM(Sales[Amount])
+    CALCULATE(SUM(Sales[Amount]), DATESYTD(Calendar[Date]))
--- a/devops_infra/docker-compose.yml
+++ b/devops_infra/docker-compose.yml
@@ -8,3 +8,4 @@
   api:
     image: backend:latest
+    mem_limit: 512m
--- a/backend_django/urls.py
+++ b/backend_django/urls.py
@@ -4,5 +4,3 @@
 urlpatterns = [
-    path('api/v1/auth/', include('core.middleware.auth_routes')),
+    path('api/v1/auth/', include('auth.api.router')),
 ]
--- a/frontend_flutter/pubspec.yaml
+++ b/frontend_flutter/pubspec.yaml
@@ -4,3 +4,3 @@
 environment:
-  sdk: ">=3.16.0 <4.0.0"
+  sdk: ">=3.19.4 <4.0.0"
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -14,2 +14,5 @@
   /auth/login:
+    post:
+      summary: "Authenticates user and returns JWT"
--- a/backend_django/views.py
+++ b/backend_django/views.py
@@ -21,2 +21,3 @@
+@cache_page(60 * 15)
 def get_heavy_data(request):
--- a/tests/e2e/checkout.spec.ts
+++ b/tests/e2e/checkout.spec.ts
@@ -0,0 +1,12 @@
+test('checkout flow', async ({ page }) => {
+  await page.goto('/checkout');
+  await page.click('#pay');
+  await expect(page.locator('.success')).toBeVisible();
+});
--- a/frontend_flutter/lib/main.dart
+++ b/frontend_flutter/lib/main.dart
@@ -8,3 +8,3 @@
       theme: ThemeData(
-        primarySwatch: Colors.blue,
+        colorSchemeSeed: Colors.deepPurple,
+        useMaterial3: true,
       ),
SOURCE_NODE
BUILD_CONTAINER
DEPLOY_NODE
PIPELINE_STATUS: SUCCESS
API Latency
42.08 ms
System Uptime
28.00 Yrs

NETWORK_TRAFFIC_LOGS

INBOUND
OUTBOUND
INFO Node-01 migration complete. Handshaking with cluster... 14:22:01
AUTH Secure session established via RSA-4096. 14:21:55
App View
Waiting for app to launch...

Launch Portfolio?

Initialize the build pipeline and deploy the Flutter app to the virtual device?