Skip to content

Instantly share code, notes, and snippets.

View ma-mehralian's full-sized avatar

Mohammad Amin Mehralian ma-mehralian

View GitHub Profile
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 28, 2025 07:59
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@guiwoda
guiwoda / AR_Cache_Repository.php
Last active February 25, 2023 21:11
AR (Eloquent) vs DM (Doctrine) gist
<?php
namespace App\ActiveRecord;
class PostRepository
{
private $cache;
public function __construct(Cache $cache)
{
// Any set() / get() cache implementation.
@discorev
discorev / readmultipageTiff.cpp
Last active October 17, 2024 23:09
C++ to use libtif to read a multi-page tiff and convert it to an opencv matrix for manipulation
#include <opencv2/core/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <string>
#include <tiffio.h>
using namespace cv;
using namespace std;