Skip to content

Instantly share code, notes, and snippets.

View mkhlil1288's full-sized avatar

Mahmoud Khalil mkhlil1288

View GitHub Profile
@mkhlil1288
mkhlil1288 / Uninstall.md
Created January 18, 2017 08:32
For Uninstall package
sudo systemctl stop mysql
sudo apt-get remove --purge mysql-server mysql-common -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo rm -rf /var/lib/mysql/ sudo rm -rf /etc/mysql/
@mkhlil1288
mkhlil1288 / nested_json.md
Created February 12, 2017 14:45
Nested Json laravel
        public function getModelsbymake()
        	{
                try{
                    $statusCode = 200;
                    $response = [
                      'make'  => []
                    //   'models'  => []
                    ];
@mkhlil1288
mkhlil1288 / gist:850ec7f1db72ceebbfe3bbbe86fc74c6
Last active February 15, 2017 06:25
loop two item in one row
<?php $c = 0; ?>

@foreach($products as $product)
<?php $b = ( ++$c % 2 == 0 ) ? true : false; ?>
@if($b)
<div class="row ">
@endif
	<div class="col-xs-12 col-sm-6 service_2i">