Skip to content

Instantly share code, notes, and snippets.

View mbmohib's full-sized avatar
🎯
Focusing

Mohammad Mohibbullah mbmohib

🎯
Focusing
View GitHub Profile
@mbmohib
mbmohib / ssl-commerz.ts
Last active May 7, 2024 06:09
SSL Commerz API Issues
// Init Order
async initOrder(
user: User,
transactionId: string,
price: number,
name: string,
) {
const data = {
total_amount: price,
@mbmohib
mbmohib / .block
Created November 22, 2019 04:46
fresh block
license: mit
@mbmohib
mbmohib / .block
Last active November 22, 2019 04:47
question chart
license: mit
@mbmohib
mbmohib / .block
Last active November 20, 2019 07:56
Circle updating
license: mit
@mbmohib
mbmohib / .block
Last active November 19, 2019 04:22
Line Chart of Temperature in different city
license: mit
@mbmohib
mbmohib / .block
Last active November 19, 2019 04:20
Bar Chart of Temperature in different city
license: mit
@mbmohib
mbmohib / addArrowIconToDropdown.js
Last active November 1, 2018 18:29
Add Arrow to nested Dropdown Menu
/**
* 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 => {
@mbmohib
mbmohib / PHP.txt
Created October 27, 2017 16:16
PHP
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 06:00
Linux Software Installation
Software List:
1. SM Player
2. Deluge
3. Atom
4. Java
5. nitroshare
6. Gnome Tweak Tool
7. Numix
8. Adapta
9. Cryptsetup
$('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