Skip to content

Instantly share code, notes, and snippets.

View debugger pause beforeunload
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
View gist:1eee62e2a0dfb005a9c86b6ce6a2b331
$(".schedule-listing-btn a").click (function(){
var type = $(this).data('type');
View gist:eacaa84e02fe92a23d15091a634d9896
"shops": [
"id": 8,
"name": "Kashmir",
"email": "",
"phone": "030126948654",
"avatar": "",
"default_banner": null,
"description": "Kashmir Indische Spezialitäten, Vegan,Vegetarisch, Halal",
View gist:a173b5c48e39f97deefef870afe7de08
View gist:9cb38140163bf4d87d2b7d68712ec63a
<!-- get all the posts loop -->
<?php if ( have_posts() ) { while ( have_posts() ) { the_post(); ?>
<!-- echo the post image -->
<?php the_post_thumbnail(get_the_ID(),'large'); ?>
<!-- echo the title -->
<?php the_title(); ?>
TakiDDine /
Created Aug 3, 2019 — forked from hootlex/
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci

Copied from

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'>
TakiDDine / robots.txt
Created Jun 11, 2019
robots.txt file
View robots.txt
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
TakiDDine / Optimization using .htaccess file
Created Jun 11, 2019
Optimization using .htaccess file
View Optimization using .htaccess file
# ------------------------------------------------------------------------------
# | Web fonts access |
# ------------------------------------------------------------------------------
# Allow access from all domains for web fonts
<IfModule mod_headers.c>
<FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
Header set Access-Control-Allow-Origin "*"