Skip to content

Instantly share code, notes, and snippets.

View biswajitpaul01's full-sized avatar
🎯
Focusing

Biswajit Paul biswajitpaul01

🎯
Focusing
View GitHub Profile
@biswajitpaul01
biswajitpaul01 / text-masking.html
Created December 13, 2017 18:41
CSS Text Masking
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Font Background Image Demo</title>
<link href="https://fonts.googleapis.com/css?family=Bungee:regular" rel="stylesheet" />
<style>
*{
# Serve from current directory without Babel-JS & Webpack
> browser-sync start --proxy "127.0.0.1" --directory --files "**/*"
# Babel JS
> npm install webpack -g
> npm init
> npm install webpack --save-dev
> webpack assets/js/app.js assets/js/app.bundle.js [Part 1]
> npm install babel-core babel-loader babel-preset-env --save-dev
@biswajitpaul01
biswajitpaul01 / multiple-click-states.html
Last active December 30, 2017 17:28
Multiple click state with icon changes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Triple State Checkbox</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/css">
.fancy-checkbox:hover{cursor:pointer}
@biswajitpaul01
biswajitpaul01 / menu-walker.php
Created February 3, 2018 18:20
Wordpress Nav Menu Walker
<?php
if ( ! class_exists( 'Snowflakes_Walker_Menu' ) ) {
class MyTheme_Walker_Menu extends Walker_Nav_Menu {
/**
* At the start of each element, output a <li> and <a> tag structure.
*
* Note: Menu objects include url and title properties, so we will use those.
*/
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
@biswajitpaul01
biswajitpaul01 / button-hover-effect.html
Created February 25, 2018 07:00
Button Hover Arrow Effect
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Button</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style type="text/css">
body{
@biswajitpaul01
biswajitpaul01 / fullscreen.sh
Created July 6, 2018 18:24
VMWare: Fullscreen Fix Linux
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --output Virtual1 --mode 1920x1080
@biswajitpaul01
biswajitpaul01 / config.inc.php
Created July 22, 2018 10:06
phpMyAdmin without login
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
$cfg['UploadDir'] = 'upload';
/*
* Servers configuration
*/
@biswajitpaul01
biswajitpaul01 / script.js
Created July 24, 2018 10:23
Reload WooCommerce Fragments
// Update from any page
$( document.body ).trigger( 'wc_fragment_refresh' );
// Update from cart page
$( document.body ).trigger( 'wc_update_cart' );
@biswajitpaul01
biswajitpaul01 / spinner.html
Created July 26, 2018 20:13
Wordpress Spinner
<span class="spinner is-active"></span>
@biswajitpaul01
biswajitpaul01 / instructions.txt
Last active August 5, 2018 07:11
Send Email via Gmail From XAMPP
# Ref: https://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost#answer-18185233
You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost.
for example you can configure C:\xampp\php\php.ini and c:\xampp\sendmail\sendmail.ini for gmail to send mail.
in C:\xampp\php\php.ini find extension=php_openssl.dll and remove the semicolon from the beginning of that line to make SSL working for gmail for localhost.
in php.ini file find [mail function] and change