Skip to content

Instantly share code, notes, and snippets.

View maldechavda's full-sized avatar
😀

Malde Chavda maldechavda

😀
View GitHub Profile
@maldechavda
maldechavda / .bash_profile
Last active February 21, 2020 10:21
Macbook bash_profile
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="$HOME/.npm-packages/bin:$PATH"
export PATH=/Users/Shared/DBngin/mysql/5.7.23/bin:$PATH
function pushme {
br=`git branch | grep "*"`
git add --all
if (($# > 1)); then
@maldechavda
maldechavda / .php_cs
Last active January 3, 2019 05:14
PHP laravel php cs fixer settings
<?php
$finder = PhpCsFixer\Finder::create()
->name('*.php')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'app')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests');
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
@maldechavda
maldechavda / bem-and-sass.md
Created April 30, 2019 05:14 — forked from radist2s/bem-and-sass.md
BEM & SASS best practices

BEM & SASS best practices

Every block should be in separated file named as block.

Filename: rating-star.scss

.rating-star {
    $font-size: 0.5em;
    
    display: inline-block; // `display` style may be set freely
@maldechavda
maldechavda / PurchaseController.php
Created July 14, 2023 08:28
Verify IOS inapp purchase
?php
namespace App\Http\Controllers\Api;
use App\Enums\PurchaseType;
use App\Http\Requests\PurchaseRequest;
use App\Http\Resources\UserResource;
use App\Models\App;
use App\Models\Subscription;
use App\Models\User;