Skip to content

Instantly share code, notes, and snippets.

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

Ariful Islam prodhan

🏠
Working from home
View GitHub Profile
@prodhan
prodhan / falseposition_22.cpp
Created March 8, 2019 18:33
Problem No 22 using False Position
/*
Created By Ariful Islam
Batch E-64 (DIU)
Roll: 34
problem no 22
EQN: x=cubic root (48)
Method: False Position
Note: Root lies between 3 and 4
*/
package bd.com.bahadur.bahadurmerchant;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
#include <iostream>
using namespace std;
int main()
{
int LA[10]={4,20,8,2,7,6,3,48,62,75};
int n=10, k=5, j, item=100;
for (j = n - 1; j >= k - 1; j--)
; Add two number by taking input
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
;print msg
mov ah,09H
mov dx,offset mes1
int 21h
@prodhan
prodhan / makepost.php
Created April 19, 2020 13:51
wordpress API :: create post error
<?php
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
function makePost(){
$uri = 'localhost/wordpress-api/wp-json/wp/v2/posts';
$apikey = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3RcL3dvcmRwcmVzcy1hcGkiLCJpYXQiOjE1ODcwNzEwMDcsIm5iZiI6MTU4NzA3MTAwNywiZXhwIjoxNTg3Njc1ODA3LCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxIn19fQ.yfBzLQS0oLE4sj45Pm73w6DkS7e2eFDffmQhvw5OyLY';
$myBody['title'] = "Demo Title";
<?php
$client = new Client();
try {
$response = $client->request('POST', $uri, [
'headers' => ['Accept' => 'application/json', 'Content-type' => 'application/json', 'Authorization' => $apikey],
['body'=>json_encode($myBody)],
'multipart' => [
[
'Content-type' => 'multipart/form-data',
'name' => 'file',
@prodhan
prodhan / GitCommitEmoji.md
Created October 6, 2020 10:08 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
<?php
namespace App\Http\Controllers;
use App\Patient;
use App\Prescription;
use Carbon\Carbon;
use Illuminate\Http\Request;
class PatientController extends Controller
@prodhan
prodhan / .htaccess
Created January 12, 2021 07:00
htaccess to remove /public from Laravel
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
RewriteCond %{HTTP:Authorization} .+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} -d [OR]
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override