Skip to content

Instantly share code, notes, and snippets.

View saeedvir's full-sized avatar
🎯
Focusing

saeed abdollahian saeedvir

🎯
Focusing
View GitHub Profile
@saeedvir
saeedvir / ApiDataResponse.php
Last active August 2, 2024 21:41
Standard API Response in PHP
<?php
/**
* Standard API Response in PHP
*
* https://github.com/obiefy/api-response
*
* @author Saeedvir [
* 'email' => '[email protected]',
* 'telegram' => 'https://t.me/PhpWebDeveloper'
* ]
@saeedvir
saeedvir / DataStructureGenerator.php
Last active July 20, 2020 09:01
Generate data in key/value structure / For ex: for admin panel dashboard
<?php
/**
*
* @author Saeedvir [
* 'email' => '[email protected]',
* 'telegram' => 'https://t.me/PhpWebDeveloper'
* ]
* @usage :
$dataGenerator = new DataStructureGenerator('data', true,true);
$dataGenerator->setData('users', 8);
@saeedvir
saeedvir / OpenWithSublimeText.bat
Created January 15, 2020 07:28 — forked from zouyangdev/OpenWithSublimeText.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 10)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
pause