Skip to content

Instantly share code, notes, and snippets.

Avatar

Markus Buchholz markusbuchholz

View GitHub Profile
@markusbuchholz
markusbuchholz / return_test.cpp
Last active Feb 23, 2021
return possibilities
View return_test.cpp
#include <iostream>
#include <vector>
#include <string>
struct privType
{
int xx;
double yy;
std::string str;
View pointer_1.cpp
#include <iostream>
int main()
{
int myNumber = 1234;
int *ptr_myNumber = &myNumber;
std::cout << " value stored in myNumber : " << myNumber << std::endl;
std::cout << " address of myNumber : " << &myNumber << std::endl;
View pointer_2.cpp
#include <iostream>
#include <string>
int main()
{
int arr[4] = {2, 4, 8, 16};
int *ptr_arr = &arr[0];
size_t lengthOfArray = sizeof(arr) / sizeof(arr[0]);
View pointer_3.cpp
#include <iostream>
void callBack_1(int value)
{
std::cout << "this is " << __FUNCTION__ << " value : " << value << std::endl;
}
void callBack_2(int value)
{
View threading.cpp
#include <iostream>
#include <mutex>
#include <thread>
#include <chrono>
#include <unistd.h>
std::mutex mx;
//----------------------------------------------------------------------
View medium_client.cpp
// Client inspired by GeeksforGeeks
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string>
#include <string.h>
#include <iostream>
View medium_server.cpp
// Server side C/C++ program to demonstrate Socket programming
// Server - inspired by GeeksforGeeks
#include <iostream>
#include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string>
View monitor.py
import streamlit as st
import numpy as np
import plotly.express as px
from plotly.subplots import make_subplots
import plotly.graph_objects as go
import time
import psutil
start_button = st.empty()
View dynamic_allocation_3d_point.cpp
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <ctime>
#include <algorithm>
//----------------------------------------------------------------------
struct Point3D