Skip to content

Instantly share code, notes, and snippets.

View aminadha's full-sized avatar
🎯
Focusing

Amin Adha aminadha

🎯
Focusing
View GitHub Profile
@aminadha
aminadha / beautifier.js
Created November 15, 2020 04:10 — forked from fzldn/beautifier.js
VS Code Laravel Blade formatter using extension Beautify 1.5.0 by HookyQR with js-beautify hacks
...
Beautifier.prototype.beautify = function() {
...
var source_text = this._source_text;
// BEGIN
source_text = source_text.replace(/\{\{(--)?((?:(?!(--)?\}\}).)+)(--)?\}\}/g, function(m, ds, c, dh, de) {
@aminadha
aminadha / git-tag-recent-commit.md
Created December 17, 2019 03:21
Move git tag to the most recent commit.

If tag pushed to remote:

Delete the tag on any remote before you push

git push origin :refs/tags/<tagname>

Replace the tag to reference the most recent commit

git tag -fa 
@aminadha
aminadha / helpers.php
Last active January 4, 2017 08:16
my laravel custom helpers.
if ( ! function_exists('is_path_active'))
{
/**
* Add 'active' class if path is active
*
* @param string $path Exclude base url
* @param string $className CSS class name
*
* @return string CSS class name
*/