This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
// Using : data-conditional='.currently-working;No;hide' data-default-display='none' | |
// Change Default status | |
$('[data-default-display]').each(function(){ | |
if($(this).attr('data-default-display') == 'none') { | |
$(this).css("display","none"); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Decode URL formed strings | |
* @param $string | |
* @return array | |
* @author Azeem Hassni <http://azeemhassni.com> | |
*/ | |
function decode_query($string) { | |
$vars = explode('&',$string); | |
$return = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countries = array( | |
'Afghanistan' => 'Afghanistan', | |
'Albania' => 'Albania', | |
'Algeria' => 'Algeria', | |
'Armenia' => 'Armenia', | |
'Australia' => 'Australia', | |
'Austria' => 'Austria', | |
'Azerbaijan' => 'Azerbaijan', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Almost every project of mine shares the same gulp file. | |
* that's why i crated a gist for it. | |
* | |
* */ | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
minify = require('gulp-minify-css'), | |
uglify = require('gulp-uglify'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"gulp": "~3.9.0", | |
"gulp-autoprefixer": "~2.3.1", | |
"gulp-concat": "~2.6.0", | |
"gulp-minify": "0.0.5", | |
"gulp-minify-css": "~1.2.1", | |
"gulp-postcss": "~6.0.1", | |
"gulp-rename": "~1.2.2", | |
"gulp-ruby-sass": "~1.4.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\V1\Billing; | |
// BillableInterface.php | |
use Laravel\Cashier\BillableInterface as CashierInterface; | |
interface BillableInterface extends CashierInterface { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use TeamTNT\TNTSearch\Facades\TNTSearch; | |
class ProductIndexer extends Command | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Http\Requests; | |
use App\Product; | |
use Illuminate\Http\Request; | |
use TeamTNT\TNTSearch\Facades\TNTSearch; | |
class ProductsController extends Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# include this file in theme's functions.php | |
namespace Timber { | |
/** | |
* Proxy \get_post_meta to ACF get_field function | |
* | |
* @param $id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"afghan": "Afghan", | |
"albanian": "Albanian", | |
"algerian": "Algerian", | |
"american": "American", | |
"andorran": "Andorran", | |
"angolan": "Angolan", | |
"antiguans": "Antiguans", | |
"argentinean": "Argentinean", | |
"armenian": "Armenian", |