Skip to content

Instantly share code, notes, and snippets.

View asifkhankadiwala's full-sized avatar

Asifkhan Kadiwala asifkhankadiwala

View GitHub Profile
'list[]': {
required: true,
minlength: 1
}
-----------------------------
'list[]': {
required: "You must check at least 1 box",
maxlength: "Check no more than {0} boxes"
}
-------------------------
// app.js
$.ajaxSetup({
// force ajax call on all browsers
cache: false,
// Enables cross domain requests
crossDomain: true,
// Helps in setting cookie
<?php // \app\http\routes.php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
@asifkhankadiwala
asifkhankadiwala / correctImageOrientation.php
Created April 23, 2018 07:29 — forked from cowboymathu/correctImageOrientation.php
Rotate archived images to correct orientation
<?php
/*
Correct image orientation v1.0
Author: Mathuvathanan Mounasamy
Licensed under the MIT license
This funtion correct all the images' orientation in a given path or directory.
display:inline-block;
width:180px;
white-space: nowrap;
overflow:hidden !important;
text-overflow: ellipsis;