Skip to content

Instantly share code, notes, and snippets.


Maher El Gamil maherelgamil

View GitHub Profile
arlomba / tailwind.js
Created Jan 30, 2019
Tailwind CSS config using Material Design colors
View tailwind.js
Tailwind - The Utility-First CSS Framework
A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink),
David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger).
Welcome to the Tailwind config file. This is where you can customize
Tailwind specifically for your project. Don't be intimidated by the
length of this file. It's really just a big JavaScript object and
blackfyre / GeneralModal.vue
Last active May 16, 2021
Modals in Laravel Nova Tools
View GeneralModal.vue
<modal @modal-close="handleClose">
class="bg-white rounded-lg shadow-lg overflow-hidden"
style="width: 460px"
<slot :uppercaseMode="uppercaseMode" :mode="mode">
<div class="p-8">
Krato / Laravel Nova
Last active Nov 25, 2020
A set of snippets I use in Laravel Nova
View Laravel Nova

A set of snippets I use in Laravel Nova


Vue,js devtools (Only with manual installation)

cd ./nova 
mv webpack.mix.js.dist webpack.mix.js
ibraheem4 /
Last active May 17, 2021 — forked from sgnl/
Installing Postgres via Brew (OSX)

Installing Postgres via Brew


Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
pbredenberg /
Last active Aug 8, 2018
Shell script to create nginx server blocks for wordpress website.
#!/usr/bin/env bash
# Nginx - new server block
# Based on this post:
# Functions
ok() { echo -e '\e[32m'$1'\e[m'; } # Green
die() { echo -e '\e[1;31m'$1'\e[m'; exit 1; }
# Variables
View slugify.js
* Converts a string to a "URL-safe" slug.
* Allows for some customization with two optional parameters:
* @param {string} Delimiter used. If not specified, defaults to a dash "-"
* @param {array} Adds to the list of non-alphanumeric characters which
* will be converted to the delimiter. The default list includes:
* ['–', '—', '―', '~', '\\', '/', '|', '+', '\'', '‘', '’', ' ']
if (!String.prototype.slugify) {
taufik-nurrohman / php-html-css-js-minifier.php
Last active Apr 25, 2021
PHP Function to Minify HTML, CSS and JavaScript
View php-html-css-js-minifier.php
// Based on <>
define('MINIFY_STRING', '"(?:[^"\\\]|\\\.)*"|\'(?:[^\'\\\]|\\\.)*\'|`(?:[^`\\\]|\\\.)*`');
define('MINIFY_COMMENT_CSS', '/\*[\s\S]*?\*/');
define('MINIFY_COMMENT_HTML', '<!\-{2}[\s\S]*?\-{2}>');
define('MINIFY_COMMENT_JS', '//[^\n]*');
define('MINIFY_PATTERN_JS', '/[^\n]+?/[gimuy]*');
define('MINIFY_HTML', '<[!/]?[a-zA-Z\d:.-]+[\s\S]*?>');
msurguy /
Last active May 16, 2021
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at

dkesberg / CiconiaFacade.php
Created Nov 21, 2013
Ciconia Markdown Parser ServiceProvider & Facade for Laravel 4 Ciconia offers Github Flavored Markdown as extension and i really like to have "proper" linebreaks ;) Ciconia: Laravel: Github Flavored Markdown:
View CiconiaFacade.php
namespace dkesberg\Facades;
use Illuminate\Support\Facades\Facade;
class CiconiaFacade extends Facade {
protected static function getFacadeAccessor()
CMCDragonkai /
Last active May 11, 2021
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>