Skip to content

Instantly share code, notes, and snippets.

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

Md Shohag fkshohag

🏠
Working from home
View GitHub Profile
function getNumber(word){
for(let index = 0; index < word.length; index++) {
if(!isNaN(word[index])) {
return word[index];
}
}
return -1;
}
function sortString(str) {
###
### ejabberd configuration file
###
### The parameters used in this configuration file are explained at
###
### https://docs.ejabberd.im/admin/configuration
###
### The configuration file is written in YAML.
### *******************************************************
### ******* !!! WARNING !!! *******
package main
import "fmt"
// Qnode ...
type Qnode struct {
key, value int
prev, next *Qnode
}
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
enum HttpStatus {
/**
* The server has received the request headers and the client should proceed to send the request body
* (in the case of a request for which a body needs to be sent; for example, a POST request).
* Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.
hin class 'CitydialogComponent'.
src/app/main/setup/pages/city/citydialog/citydialog.component.html(6,27): : Property 'data' is private and only accessible within class 'CitydialogComponent'.
src/app/main/setup/pages/district/district-dialog/district-dialog.component.html(6,27): : Property 'data' is private and only accessible within class 'DistrictDialogComponent'.
src/app/main/setup/pages/district/district-dialog/district-dialog.component.html(6,27): : Property 'data' is private and only accessible within class 'DistrictDialogComponent'.
src/app/main/setup/pages/blood-group/blood-group-dialog/blood-group-dialog.component.html(5,27): : Property 'data' is private and only accessible within class 'BloodGroupDialogComponent'.
src/app/main/setup/pages/blood-group/blood-group-dialog/blood-group-dialog.component.html(5,27): : Property 'data' is private and only accessible within class 'BloodGroupDialogComponent'.
src/app/main/setup/pages/division/division-dialog/division-dialog.component.html(6,27): : Property 'da
<?php
public function getEmergencyGraph()
{
$start_date = Carbon::today()->subDays(10);
$queryResult = EmployeeHealthChecker::whereDate('survey_date', '>=', $start_date)->get();
$qeurySet = [];
foreach ($queryResult as $result) {
$date = $result->survey_date;
if (!in_array($date, $qeurySet)) {
$qeurySet[$date] = [
### Keybase proof
I hereby claim:
* I am fazlulkabir94 on github.
* I am brain_art (https://keybase.io/brain_art) on keybase.
* I have a public key ASDW5jGyN5KzwaBnmqVw-Z-LgGemzBmm0jn_CrzXJfYb_wo
To claim this, I am signing this object:
@fkshohag
fkshohag / tower_hanoi.py
Created December 7, 2019 17:36
Tower of Hanoi
class Tower:
def __init__(self):
self.terminate = 1
def printMove(self, source, destination):
print("{} -> {}".format(source, destination))
def move(self, disc, source, destination, auxiliary):
if disc == self.terminate:
<?php
class Node {
private $data;
private $next;
public function __construct() {
$this->data = 0;
$this->next = null;
}
@fkshohag
fkshohag / dbdaigram.js
Created November 22, 2019 17:25
DB daigram
//// -- LEVEL 1
//// -- Tables and References
// Creating tables
Table users as U {
id int [pk, increment] // auto-increment
full_name varchar
created_at timestamp
country_code int
}