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
/** IMPORTANT NOTE: | |
* Make sure you put this JS in the footer of your site | |
* and not to include in a file and then load it in the defer or async way | |
* Otherwose the script may not work properly. | |
* | |
* Though this script was written keeping WordPress in mind, but it can be used | |
* on any CMS or in any sites. Enjoy :) | |
* | |
* Custom script written for www.iSaumya.com/blog/ by Saumya Majumder in 2016 | |
**/ |
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
/* This script will show a special designed message in the console.log section of your website | |
* for those who looks for something extra in your website. | |
* Fiddle Link: https://jsfiddle.net/isaumya/vtjswjuL/ | |
**/ | |
jQuery(function ($) { | |
try{ | |
console.log("%c < ISAUMYA /> ","background: linear-gradient(to right, rgba(231,76,60,1) 0%,rgba(155,89,182,1) 100%););font-size:3em;border-radius:1em;color:#ffffff;font-weight:bold;font-style: italic;"); | |
console.log('%c made with ♥ by Saumya Majumder © 2016', 'color: #e74c3c;font-size:1.1em;'); | |
} | |
catch(e){} |
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
/* Let's say the normal title of page in the <title> tag is => iSaumya.com | |
* but when user will go to some other tab of the browser, it will be changed | |
* from iSaumya.com to 。◕‿◕。 iSaumya.com | |
**/ | |
var original_title = document.title; | |
document.addEventListener("visibilitychange", function(){ | |
if(document.hidden) | |
document.title = "。◕‿◕。 iSaumya.com"; | |
else | |
document.title = original_title; |
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 | |
/* | |
Plugin Name: Type a plugin name here | |
Plugin URI: https://www.isaumya.com/ (This is supposed to link to the plugin's official page, but you can put any link here) | |
Description: Type a detailed description about the plugin. Like what is does. What changes does it make to the site etc. | |
Version: 1.0 (Just a version number for your plugin) | |
Author: Saumya Majumder (Author's Name, i.e. your name) | |
Author URI: https://www.isaumya.com/ (This is supposed to link to the author's official page, but you can put any link here) | |
*/ |
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
Options -Indexes |
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
<IfModule mod_headers.c> | |
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{http_host} !^www.example.com$ [nc,OR] | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] | |
</IfModule> |
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 | |
/*** enable svg support ***/ | |
add_filter('upload_mimes', function( $mimes ) { | |
$mimes['svg'] = 'image/svg+xml'; | |
$mimes['svgz'] = 'image/svg+xml'; | |
return $mimes; | |
}); |
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 | |
/*** Function to show images whether SVG or non SVG ***/ | |
/*** $size & $attribute both can hold array if you want ***/ | |
function show_image( $image_id, $size = null, $attributes = null ) { | |
//first lets get the file info sto understand what kind of file it is | |
//as for svg file we will take different approach | |
$file_info = pathinfo( wp_get_attachment_url( $image_id ) ); | |
//so, if the file type is SVG | |
if ( $file_info['extension'] === 'svg' ) { |
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
## Terminal | |
https://github.com/wbond/sublime_terminal | |
https://packagecontrol.io/packages/Terminal | |
## Material Theme for Sublime Text | |
https://github.com/equinusocio/material-theme | |
https://packagecontrol.io/packages/Material%20Theme | |
## A File Icon | |
https://github.com/ihodev/a-file-icon |