Skip to content

Instantly share code, notes, and snippets.

View hasinur1997's full-sized avatar
🎯
Focusing

Hasinur Rahman hasinur1997

🎯
Focusing
  • rtCamp
  • India
View GitHub Profile

What is networking ?

A network reffers two more connected computers that can share resources such as data, a printer, an internet connection, applications or a combinitaion of these resources.

Internetworking:

Internetworking is the process or technique of connecting different networks by using intermediary devices such as routers or gateway devices.

Internetworking ensure data communication among networks owned and operated by different entities using a data communication and the internet routing protocol.

Types of networks

  1. Local Area Network (LAN)

Zendesk User

<?php
namespace WeDevs\ERP\Zendesk;

use WeDevs\ERP\Framework\Models\People;
use WeDevs\ERP\CRM\Contact;

class User {

Implementation of Friend Class

#include<iostream>

using namespace std;

class Square;

class Rectangle {

What is function overloading ?

Function overloading is a feature in where two or more functions can have the same name but different parameters. Function overloading can be considered as an example of polymorphism feature.

Advantages of function overloading.

  1. the use of function overloading is to save the memory space,consistency and readabiliy.

  2. We can develop more than one function with the same name.

  3. Function overloading exhibits the behavior of polymorphism which helps to get different behaviour, although there will be some link using same name of function.

@hasinur1997
hasinur1997 / binary-merge-algorithm.md
Created September 22, 2019 18:03
Merge sort and binary search algorithm

Binary Search and Merge sort algorithm

#include<stdio.h>
#define array_size 100

int arr[array_size];
int temp[array_size];
void merge(int startPoint, int midPoint, int endPoint);
#include<stdio.h>

void lexicalAnalyzer(char s[]);
int isIdent(char ch);
int isAlpha(char ch);
int isDigit(char ch);
int isOperator(char ch);
int isDelemeter(char ch);
void display(char s[100][32], int n);

Implementation of linked list

Node Class

class Node:
    def __init__(self, data):
        self.data = data
        self.next = None

LinkedList Class

sudo mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;
service mysql restart

Webscrapping using python

import requests
from bs4 import BeautifulSoup

response = requests.get("https://stackoverflow.com/questions");
soup = BeautifulSoup(response.text, "html.parser")
questions = soup.select(".question-summary")
@hasinur1997
hasinur1997 / WordPress-Post.md
Last active September 14, 2022 14:20
WordPress Post

Create Post

wp_insert_post();

Get post

get_posts() get_post()

Update Post

wp_update_post()