Skip to content

Instantly share code, notes, and snippets.

View bulbul84's full-sized avatar

Md Bulbul Hasan bulbul84

View GitHub Profile
@bulbul84
bulbul84 / Windows PowerShell Command
Created July 21, 2020 07:00
How to remove common name from all files from your computer:
You could also try using PowerShell, a powerful Windows command line tool. You'd run this command:
Full Command:
get-childitem *.mp3 | foreach { rename-item $_ $_.Name.Replace("Radiohead -", "") }
Analyzing it:
get-childitem *.mp3
This lists all files whose names end with .mp3. They are then piped to the next command with the | operator.
@bulbul84
bulbul84 / index.html
Created March 27, 2020 18:41
Magnific Popup Vimeo Video Autoplay with sound in Google Chrome Browser
<style>
.persona_promo_video {
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
height: 315px;
width: 563px;
}
.persona_video_tablecell {
width: 100%;
@bulbul84
bulbul84 / windowResizeScroll.js
Created February 1, 2020 13:15
Window Resize Scroll Function
//[Custom Javascript]
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 50) {
$(".banner_right").addClass("banner_right_img");
} else {
$(".banner_right").removeClass("banner_right_img");
@bulbul84
bulbul84 / outlookConditions.html
Created February 1, 2020 11:52
Outlook Conditions For Email Template
<!--[if !mso]><!-- If Not Outlook, Show This -->
<td id="order_date" class="" background="http://dev.vitaminpacks.com/emails/images/header-bg.png" width="600" height="88" valign="top">
<!--<![endif]-->
<!--[if gte mso 9]>
<td id="order_date" class="" width="600" height="88" valign="top">
<![endif]-->
</td>
@bulbul84
bulbul84 / addClass-removeClass.html
Created January 25, 2020 14:03
Remove and Add a Class (.active) with menu item by onclick:
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav menu_wrapper">
<li class="active"><a class="menu_item" href="#">Home</a></li>
<li><a class="menu_item" href="#">Page 1</a></li>
<li><a class="menu_item" href="#">Page 2</a></li>
<li><a class="menu_item" href="#">Page 3</a></li>
@bulbul84
bulbul84 / auto-changes-word.html
Created September 14, 2019 07:52
Autometically changes multiple word by js
<span id="changing_text">wellness</span>
<script>
$(document).ready(function() {
var texts = ["wellness", "energy", "sleep", "stress", "diet", "digestion"];
var count = 0;
function changeText() {
$("#changing_text").text(texts[count]);
count < 6 ? count++ : count = 0;
}
@bulbul84
bulbul84 / index.html
Created July 31, 2019 11:07
Play YouTube or Vimeo Video in Modal - Bootstrap 4
<div class="container">
<h1>Play YouTube or Vimeo Videos in Bootstrap 4 Modal</h1>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary video-btn" data-toggle="modal" data-src="https://www.youtube.com/embed/Jfrjeg26Cwk" data-target="#myModal">
Play Video 1 - autoplay
</button>
<!-- Button trigger modal -->
@bulbul84
bulbul84 / index.html
Created July 24, 2019 20:04
Show-Hide based on Select Option jQuery
<style>/* https://gist.github.com/toddparker/32fc9647ecc56ef2b38a */
/* Some basic page styles */
body {
font: 100%/1.5 AvenirNext-Regular, Corbel, "Lucida Grande", "Trebuchet Ms", sans-serif;
color: #111;
background-color: #fff;
margin: 2em 10%
}
@bulbul84
bulbul84 / commandPrompt.txt
Created July 23, 2019 17:21
Find PHP version on windows command line
https://stackoverflow.com/questions/15517718/find-php-version-on-windows-command-line
@bulbul84
bulbul84 / gist:07cae62b0baa6e82322fae41650e5981
Last active July 20, 2019 08:56
scroll certain/specific section from bootstrap modal popup
// Modal Trigger
<a class="terms_scroll" href="#" data-toggle="modal" data-target="#privacyPolicy" data-section="section-1"> Subscription Services</a>
//Model window scroll to subscription renewal section script
$(document).ready(function(){
$('#privacyPolicy').on('shown.bs.modal', function(event) {
// reset the scroll to top
$('#privacyPolicy .privacy_policy_content').scrollTop(0);
// get the section using data
var section = $(event.relatedTarget).data('section');