This file contains hidden or 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 | |
/* For more details see: http://laraget.com/blog/select2-and-laravel-ajax-autocomplete */ | |
namespace App\Http\Controllers\Select2Ajax; | |
use App\Tag; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
class TagController extends Controller |
This file contains hidden or 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
USERNAME = 'abc' | |
PASSWORD = 'xyz' | |
EPUBJS.core.request = function(url, type) { | |
var supportsURL = window.URL; | |
var BLOB_RESPONSE = supportsURL ? "blob" : "arraybuffer"; | |
var deferred = new RSVP.defer(); | |
var xhr = new XMLHttpRequest(); |
This file contains hidden or 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
#!/bin/bash | |
find . -type f -name "*.png" -o -name "*.PNG" | xargs optipng -nb -nc | |
find . -type f -name "*.png" -o -name "*.PNG" | xargs advpng -z4 | |
find . -type f -name "*.png" -o -name "*.PNG" | xargs pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow | |
find . -type f -name "*.jpg" -o -name "*.JPG" | xargs jpegoptim -f --strip-all |