I hereby claim:
- I am mayeenulislam on github.
- I am mayeenulislam (https://keybase.io/mayeenulislam) on keybase.
- I have a public key whose fingerprint is CFF1 D104 6905 54AF 01CD 06CB EF58 8473 625B 520A
To claim this, I am signing this object:
| # ---------------------------------------------------------------------- | |
| # | Compression | | |
| # ---------------------------------------------------------------------- | |
| <IfModule mod_deflate.c> | |
| # Force compression for mangled `Accept-Encoding` request headers | |
| # https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html | |
| <IfModule mod_setenvif.c> |
| <?php | |
| /** | |
| * Redirect from wp-login.php | |
| * @link http://stackoverflow.com/a/1976804/1743124 | |
| */ | |
| function mayeenulislam_wp_login_redirect(){ | |
| if( isset($_GET['action']) && $_GET['action'] == 'register' ) { | |
| wp_redirect( home_url('/register') ); //i.e. http://example.com/register | |
| exit(); | |
| } else if( isset($_GET['action']) && $_GET['action'] == 'lostpassword' ) { |
| .item{ | |
| overflow: auto; | |
| scroll-snap-type: proximity; | |
| scroll-snap-points-x: repeat(300px); | |
| } | |
| /* Source: https://twitter.com/supersole/status/615924334675296256 */ |
| <?php | |
| /** | |
| * Ascending order search result - WordPress | |
| * @param object $query | |
| * @return void | |
| */ | |
| function wp20150504_alphabetical_search_query( $query ) { | |
| //checking whether we are in the search result page or not | |
| if ( $query->is_search && $query->is_main_query() ) { |
| jQuery(document).ready(function($) { | |
| var imgs = $('img'); //grabbing all the images of a DOM | |
| imgs.addClass('lazy'); //adding .lazy to all the images | |
| imgs.each(function() { | |
| var img_src = $(this).attr('src'); //grabbing the 'src=""' value of each of the img | |
| $(this).attr('data-original', img_src); //assigning the src value to 'data-original' | |
| $(this).removeAttr('src'); //now deleting the 'src' attribute | |
| }); |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| jQuery(document).ready(function($) { | |
| $('body.post-new-php #formatdiv input[id="post-format-gallery"], body.post-new-php #formatdiv input[id="post-format-video"]').change(function(){ | |
| $('.news-head-div').slideUp(); | |
| $('.news-highlight-div').slideUp(); | |
| $('#news-position').slideUp(); | |
| $('#categorydiv').slideUp(); | |
| }); | |
| $('body.post-new-php #formatdiv input[id="post-format-0"]').change(function(){ |