Skip to content

Instantly share code, notes, and snippets.

View MaheKarim's full-sized avatar
💙
Looking for a Job

Mahe Karim MaheKarim

💙
Looking for a Job
View GitHub Profile
@MaheKarim
MaheKarim / postman
Created March 3, 2024 11:20
Postman Bearar Token Automation
// Parse the response JSON
var responseData = pm.response.json();
// Extract the access token from the response
var accessToken = responseData.data.access_token;
// Set the access token variable
pm.environment.set("access_token", accessToken);
@MaheKarim
MaheKarim / Full Page
Created December 25, 2023 12:20
Full Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Feedback Landing page from user.">
<meta name="keywords" content="landing page, html css landing page, gsap">
<meta name="author" content="Masum Billah">
<title>{{ $business->business_name }}</title>
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.6.0/fonts/remixicon.css" rel="stylesheet">
@MaheKarim
MaheKarim / composer.json
Created June 2, 2022 11:56
Laravel Lower Version 5.6v Project Dockerize Problem
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
@MaheKarim
MaheKarim / MainActivity.java
Created February 27, 2022 17:33
Android Code
package com.example.mahekarim162_15_7770;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends AppCompatActivity {
@MaheKarim
MaheKarim / Label Encoding Class.ipynb
Last active June 2, 2022 12:02
Label Encoding Class.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<div class="col-lg-3">
<label for="couriertype_id">Select Courier Type<span>*</span></label>
<select class="form-control" name="couriertype_id" id="couriertype_id">
@php($couriertypes = \App\Models\CourierType::all())
@foreach ($couriertypes as $couriertype)
<option {{ ($getquotes->couriertype_id) ? 'selected' : '' }} value="{{ $couriertype->id }}">{{ $couriertype->courier_type_name }} </option>
@endforeach
</select>
</div>
<?php
require_once base_path(); // Include LicenseBox external/client api helper file
// Initialize a new LicenseBoxAPI object
$filename = 'database.sql';
$product_info=$api->get_latest_version();
/*
$license_filename="../.lic";
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
public function update(Request $request)
{
$products = Product::findOrfail($request)->first();
$products->product_name = $request->product_name;
$products->description = $request->description;
$products->total_rate = $request->total_rate;
$products->package_rate = $request->package_rate;
$products->product_slug = $request->product_slug;
$products->package_image = $request->package_image;
protected function authenticated (Request $request, $user)
{
if (Auth::check() && Auth::user()->role->id == 1 ) {
$this->redirectTo = route('admin.dashboard');
} elseif(Auth::check() && Auth::user()->role->id == 2 ) {
$this->redirectTo = route('doctor.dashboard');
} elseif(Auth::check() && Auth::user()->role->id == 3 ) {
$this->redirectTo = route('nurse.dashboard');