Skip to content

Instantly share code, notes, and snippets.

@jayjayswal
jayjayswal / stohi.c
Created February 21, 2015 18:35
Convert IP address to integer and convert it back in c
#include <stdio.h>
#include <stdlib.h>
union
{
unsigned int integer;
unsigned char byte[4];
} itoch;
main(){
printf("Converting IP: 32.0.45.54\n");
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active October 13, 2025 20:38
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@Bibimaw
Bibimaw / quality_metrics_OpenCV.cpp
Last active February 20, 2024 00:31
[C++] SSIM & PSNR quality metrics using OpenCV Mat structure
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <iostream>
using namespace std;
using namespace cv;
// quality-metric
namespace qm
{