Skip to content

Instantly share code, notes, and snippets.

View cmjagtap's full-sized avatar
🎯
Focusing

Chandramohan Jagtap cmjagtap

🎯
Focusing
  • HCL Tech
  • Delhi
View GitHub Profile
@cmjagtap
cmjagtap / curl_multi_test.c
Created June 22, 2021 10:58 — forked from clemensg/curl_multi_test.c
libcurl multi interface example
/* curl_multi_test.c
Clemens Gruber, 2013
<clemens.gruber@pqgruber.com>
Code description:
Requests 4 Web pages via the CURL multi interface
and checks if the HTTP status code is 200.
Update: Fixed! The check for !numfds was the problem.

Download CMake from: https://cmake.org/download/

wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz

Compile from source and install

tar zxvf cmake-3.*

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

/* Deleting a node from Binary search tree */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find minimum in a tree.
Node* FindMin(Node* root)