Skip to content

Instantly share code, notes, and snippets.

View markusbuchholz's full-sized avatar

Markus Buchholz markusbuchholz

View GitHub Profile
@markusbuchholz
markusbuchholz / return_test.cpp
Last active February 23, 2021 19:49
return possibilities
#include <iostream>
#include <vector>
#include <string>
struct privType
{
int xx;
double yy;
std::string str;
#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;
#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]);
#include <iostream>
void callBack_1(int value)
{
std::cout << "this is " << __FUNCTION__ << " value : " << value << std::endl;
}
void callBack_2(int value)
{
#include <iostream>
#include <mutex>
#include <thread>
#include <chrono>
#include <unistd.h>
std::mutex mx;
//----------------------------------------------------------------------
// 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>
// 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>
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()
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <ctime>
#include <algorithm>
//----------------------------------------------------------------------
struct Point3D