Skip to content

Instantly share code, notes, and snippets.

View mohammad425's full-sized avatar
🏠
Working from home

Mir Mohammad Hosseini mohammad425

🏠
Working from home
View GitHub Profile
@AmirMahdyJebreily
AmirMahdyJebreily / conventional_commit_messages.md
Last active June 1, 2025 18:57 — forked from qoomon/conventional-commits-cheatsheet.md
کامیت های مرسوم گیت | Conventional Commit Messages

کامیت های مرسوم گیت | Conventional Commit Messages

ترجمه شده از اینجا با زبان خودمونی تر که هر آدمی بفهمه

چرا باید خوب کامیت بزنیم ؟

این که شما بخواهید در یک پروژه متن باز مشارکت داشته باشید یا اینکه یک پروژه رو با دوستانتون پیش ببرید، نیازمند یک فرمت یا قانون مشخص برای کامیت زدنه! زمانی این نیاز احساس میشه که کامیت های پروژه زیاد شدن و شما نمیدونید دقیقا توی کدوم کامیت چیکار کردید. درست کامیت زدن باعث میشه تا بتونید راحت تر تغییرات رو مدیریت و در انتها یک ریپوزیتوری خوب بسازید که همه بتونن بفهمن شما دقیقا چیکار کردید و بتونن بهتر کمک کنند !
ببین چطوری میتونی با تغییر دادن مدل کامیت زدنت، بین خودت و بقیه تفاوت ایجاد کنی. نمونه ها به شخصه استفاده از این قرارداد یا انواع دیگه ای از اینجور قرارداد ها برای کامیت زدن رو پیشنهاد میکنم. چرا که نه تنها به درد کار های شخصی و تیمی کوچیک میخوره، بلکه به درد کار های بزرگ و سازمانی هم میخورن! باعث میشه از یه جایی به بعد کار ها هم سریع تر پیش برن، هم دقیق تر و هم با باز

@mohammad425
mohammad425 / getAllModels.php
Created August 25, 2020 18:07
Get a list of all models in Laravel
<?php
use Illuminate\Support\Facades\File;
function getAllModels(): array
{
$composer = json_decode(file_get_contents(base_path('composer.json')), true);
$models = [];
foreach ((array)data_get($composer, 'autoload.psr-4') as $namespace => $path) {
$models = array_merge(collect(File::allFiles(base_path($path)))
@jsoningram
jsoningram / googlefonts.css
Created August 10, 2015 22:58
@font-face for local Google fonts
/* Lato */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 100;
src: local('Lato Hairline'), local('Lato-Hairline'), url(../fonts/Lato-Hairline.ttf) format('truetype');
}
@font-face {
font-family: 'Lato';
font-style: normal;
@rxaviers
rxaviers / gist:7360908
Last active June 20, 2025 01:12
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Ivanca
Ivanca / function.sexy_comment.php
Last active October 29, 2023 21:21
A PHP function to generate pretty comments for PHP and Javascript.
<?php
/*----------------------------------------------------------------------
|: :|
|: Sexy comments in your code! :|
|: =========================== :|
|: Hi, my name is Ivan I care about programming, music and women. :|
|: Follow me on twitter: @ivanca :|
|: :|
----------------------------------------------------------------------*/