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
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Facades\Hash;
DB_CONNECTION=pgsql
DB_HOST=d4ct5r85kvj140 host=ec2-54-221-212-126.compute-1.amazonaws.com
DB_PORT=5432
DB_DATABASE=d4ct5r85kvj140
DB_USERNAME=bzeodrnwrilekt
DB_PASSWORD=d0705a5a8fb8641fb30cd824f0306e8614ca95ed78bff458ee9011231ca2dc10

Keybase proof

I hereby claim:

  • I am mahekarim on github.
  • I am mahekarim (https://keybase.io/mahekarim) on keybase.
  • I have a public key whose fingerprint is C307 E62F 3AB3 27B8 A565 052E B91F 6BC4 EF1C 7FF2

To claim this, I am signing this object:

@MaheKarim
MaheKarim / 4_3.php
Created July 23, 2019 15:56
Wheres the wrong
/**
* Created by PhpStorm.
* User: Mahe
* Ques: Sanitization in PHP
* Date: 23-Jul-19
* Time: 4:05 AM
*/
<!DOCTYPE html>
<html lang="en">
<head>
@MaheKarim
MaheKarim / index.html
Created July 22, 2019 19:15
In House PHP don't Show Problem
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
Milligram with PHP
</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
<link rel="stylesheet" href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
@MaheKarim
MaheKarim / index.html
Created July 22, 2019 19:14
In House Problem
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
Milligram with PHP
</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
<link rel="stylesheet" href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
<?php
/**
* Created by PhpStorm.
* User: Mahe
* Date: 18-Jul-19
* Time: 1:19 AM
*/
function fib($number)
{
F(8) = F(8-1) + F (8-2)
= F(7) + F(6)
= 13 + 8
= 21
8 Number = 0 1 2 3 4 5 6 7 8
F(8) = 0 1 1 2 3 5 8 13 21
8 ক্রম এর আউটপুট নিম্নের ছবিতে
@MaheKarim
MaheKarim / While Loop - Fibonacci
Last active July 17, 2019 18:43
While Loop In Fibonacci
<?php
/**
* Created by PhpStorm.
* User: Mahe
* Date: 17-Jul-19
* Time: 11:54 PM
*/
function fibonacci ($number){
static $oldValueStore = 0; // store as static var because the value of this var won't change
@MaheKarim
MaheKarim / Fibonacci Series Explained in PHP with Mahe Karim
Last active July 17, 2019 17:48
ফিবোনারচ্চি নিয়ে আলোচনা
<?php
function fibonacci($old, $new, $end){ // প্যারামিটার ইনিশিয়ালাইজড
static $start;
/* Static Variable
* In this function the value of static var value won't change
*/
$start = $start ?? 1;