Skip to content

Instantly share code, notes, and snippets.

View asifulmamun's full-sized avatar
🏠
Working from home

Al Mamun asifulmamun

🏠
Working from home
View GitHub Profile
@asifulmamun
asifulmamun / WooCommerce WP - minimum weight specify while order.php
Last active September 27, 2024 04:05
WooCommerce WP - minimum weight specify while order
<?php
// WooCommerce WP - minimum weight specify while order
add_action( 'woocommerce_check_cart_items', 'spyr_set_weight_requirements' );
function spyr_set_weight_requirements() {
// Only run in the Cart or Checkout pages
if( is_cart() || is_checkout() ) {
global $woocommerce;
// Set the minimum weight before checking out
$minimum_weight = 2;
@asifulmamun
asifulmamun / console.php
Created August 16, 2023 16:08 — forked from miftahafina/console.php
Remove laravel controller with artisan command
<?php
/**
* Copy and paste the code below into your routes/console.php file.
* You can add more command such as 'remove:model', 'remove:middleware', etc if you want,
* just modify the $file_location variable.
*/
Artisan::command('remove:controller {name : Name of the controller}', function ($name) {
@asifulmamun
asifulmamun / Tonmoy-Assembly-0-10-even-odd-problem.asm
Last active February 25, 2021 13:39
Tonmoy Problem for Question - Assembly - 0-10 even or odd
.DATA
PROMPT_1 DB \'Enter the number from 0 to 10 : $\'
PROMPT_2 DB 0DH,0AH,\'The number is : $\'
.CODE
MAIN PROC
MOV AX, @DATA ; initialize DS
MOV DS, AX
LEA DX, PROMPT_1 ; load and print PROMPT_1