Skip to content

Instantly share code, notes, and snippets.

View fsuuaas's full-sized avatar

Sharif Uddin Ahamed fsuuaas

View GitHub Profile
Dropzone.options.uploadImages = {
autoProcessQueue: false,
maxFilesize: 2048,
uploadMultiple: false,
parallelUploads: 100,
acceptedFiles: 'image/*',
addRemoveLinks: true,
dictRemoveFile: 'Remove',
init: function() {
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Model\Order;
use Session;
use Mail;
@fsuuaas
fsuuaas / meta-tags.md
Created August 17, 2017 14:44 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@fsuuaas
fsuuaas / curry-with-jscookie.html
Created August 22, 2017 18:50 — forked from hitautodestruct/curry-with-jscookie.html
Allow usage of curry with js-cookie plugin
<script src="curry.min.js"></script>
<script src="js.cookie.js"></script>
<script>
var savedRate, savedCurrency;
var customCurrency = {
'USD': 1,
'COP': 2670,
};
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="4rmG3GIwrSDwoLSCEuzstbCkxx5OhLIrCw65ByHq">
@fsuuaas
fsuuaas / EnsureQueueListenerIsRunning.php
Created March 19, 2018 13:12 — forked from ivanvermeyen/EnsureQueueListenerIsRunning.php
Ensure that the Laravel 5.1 queue listener is running with "php artisan queue:checkup" and restart it if necessary. You can run this automatically with a cron job: http://laravel.com/docs/scheduling
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class EnsureQueueListenerIsRunning extends Command
{
/**
* The name and signature of the console command.
document.onkeypress = function(e) {
if (123 == (e = e || window.event).keyCode) return !1
}, document.onmousedown = function(e) {
if (123 == (e = e || window.event).keyCode) return !1
}, document.onkeydown = function(e) {
if (123 == (e = e || window.event).keyCode) return !1
};
var message = "Sorry, right-click has been disabled";
function clickIE() {
<?php if (!isset($_COOKIE['logoalert'])): ?>
<script>
$(window).on('load',function(){
$('#logoModel').modal('show');
setTimeout(function() {$('#logoModel').modal('hide');}, 10000);
});
</script>
<?php
@fsuuaas
fsuuaas / address.json
Created July 7, 2018 20:28 — forked from AminulBD/address.json
Bangladdesh divisions, districts and upazila list in php array and json
{
"Rajshahi": {
"Joypurhat": [
"Akkelpur",
"Joypurhat Sadar",
"Kalai",
"Khetlal",
"Panchbibi"
],
"Bogura": [