Skip to content

Instantly share code, notes, and snippets.

Avatar

Mohammad Mohibbullah mbmohib

View GitHub Profile
View .block
license: mit
@mbmohib
mbmohib / .block
Last active Nov 22, 2019
question chart
View .block
license: mit
@mbmohib
mbmohib / .block
Last active Nov 20, 2019
Circle updating
View .block
license: mit
@mbmohib
mbmohib / .block
Last active Nov 19, 2019
Line Chart of Temperature in different city
View .block
license: mit
@mbmohib
mbmohib / .block
Last active Nov 19, 2019
Bar Chart of Temperature in different city
View .block
license: mit
@mbmohib
mbmohib / addArrowIconToDropdown.js
Last active Nov 1, 2018
Add Arrow to nested Dropdown Menu
View addArrowIconToDropdown.js
/**
* Find any element that has dropdown ul
* and add "down arrow" to 1st level
* and "right arrow" to 2nd level
*
* @param {*} nodeList
*/
const addArrowIconToDropdown = (nodeList) => {
const nodeListArray = Array.prototype.slice.call(nodeList)
nodeListArray.length > 0 && nodeListArray.forEach(list => {
View PHP.txt
PHP - MARIA DB - LARAVEL - ATOM
# PHP + Maria DB:
$ sudo apt-add-repository ppa:ondrej/php
$ sudo apt-get install curl unzip phpunit mariadb-client mariadb-server sqlite3 php7.0 php7.0-cli php7.0-curl php7.0-mcrypt php7.0-sqlite3 php7.0-mbstring php7.0-zip php7.0-mysql php7.0-xml
$ which php
$ which mysql
# Composer + Laravel
Get the Composer first : https://getcomposer.org/download/
@mbmohib
mbmohib / Linux Software Installation.txt
Last active May 1, 2018
Linux Software Installation
View Linux Software Installation.txt
Software List:
1. SM Player
2. Deluge
3. Atom
4. Java
5. nitroshare
6. Gnome Tweak Tool
7. Numix
8. Adapta
9. Cryptsetup
View Smooth Scrolling
$('a[href*="#"]')
// Remove links that don't actually link to anything
.not('[href="#"]')
.not('[href="#0"]')
.click(function(event) {
// On-page links
if (
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '')
&&
location.hostname == this.hostname
@mbmohib
mbmohib / style.css
Last active Mar 23, 2017
CSS Tricks
View style.css
/* Center elements Using Position: */
element {
position:absolute;
left:0;
right:0;
margin-left:auto;
margin-right:auto;
}
/* Centering Element in CSS */