Skip to content

Instantly share code, notes, and snippets.

View rajurayhan's full-sized avatar
🎯
Focusing

Raju Rayhan rajurayhan

🎯
Focusing
View GitHub Profile
<?php
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Http;
use GuzzleHttp\Client as GuzzleClient;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
@rajurayhan
rajurayhan / approval-process-dss.php
Created August 23, 2021 05:52
Approval Process Service For DSS
<?php
namespace App\Services;
use App\Libraries\WebApiResponse;
use App\Models\EmployeeInformation\ApprovalProcess\EmployeeApprovalData;
use App\Models\EmployeeInformation\Employee;
use App\Models\PayrollManagement\EmployeSalaryAllowancePolicy;
use Carbon\Carbon;
use Illuminate\Http\Request;
@rajurayhan
rajurayhan / Excel-Column-name-to-Number-and-Number-to-Column-Name.php
Created June 18, 2020 03:27
This sample code Converts Excel column name to number and vice versa.
<?php
function alpha2num($columnAlphabetic) {
$numericValue = 0;
foreach(str_split($columnAlphabetic) as $singleLetter){
$numericValue = ($numericValue * 26) + (ord(strtolower($singleLetter)) - 96);
}
return $numericValue;
}
function num2alpha($columnNumeric) {
@rajurayhan
rajurayhan / sql-reserved-words.php
Last active June 2, 2020 09:07
MySQL Reserved Keywords Array
<?php
// SQL Preserved Keywords
$sqlReservedWords = [
'ACCESSIBLE',
'ADD',
'ALL',
'ALTER',
'ANALYZE',
'AND',
@rajurayhan
rajurayhan / index.php
Created February 20, 2020 11:57
Attendance Integration
<?php
// echo phpinfo();
$baseURL = 'http://192.168.10.241:8080/simecschool/';
$attendanceAPI = $baseURL.'frontend/apiattendance';
// echo $attendanceAPI;
$data = array(
'punchID' => '123456',
@rajurayhan
rajurayhan / 1050.cpp
Last active August 29, 2015 14:17
URI Online Judge Solutions
#include<iostream>
using namespace std;
class DDD{
private:
int a;
public:
void get_data(){
cin>>a;
}
void display(){
@rajurayhan
rajurayhan / 1132.c
Created March 29, 2015 16:25
URI Online Judge Solutions
#include<stdio.h>
int main(){
int x,y,i,sum=0;
scanf("%d %d",&x,&y);
if(y>x){
for(i=x;i<=y;i++){
if(i%13!=0)
sum=sum+i;
}
@rajurayhan
rajurayhan / 1046.c
Created March 29, 2015 07:18
URI Problem 1046-Game Time
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d",&a,&b);
if(a==b)
printf("O JOGO DUROU %d HORA(S)\n",24-0);
else if(a>b){
c=(24-a)+b;
printf("O JOGO DUROU %d HORA(S)\n",c);
@rajurayhan
rajurayhan / 1037.c
Last active August 29, 2015 14:17
URI Solution
#include<stdio.h>
int main(){
float a;
scanf("%f",&a);
if(a>=0&&a<=25)
printf("Intervalo [0,25]\n");
else if(a>25&&a<=50)
printf("Intervalo (25,50]\n");
@rajurayhan
rajurayhan / URI-1017.C
Created January 15, 2015 10:50
URI Online Judge | 1017
#include<stdio.h>
int main()
{
float hr,sp,m,d;
m=12;
scanf("%f %f",&hr,&sp);
d=(hr*sp)/m;
printf("%.3f\n",d);
return 0;