Skip to content

Instantly share code, notes, and snippets.

View Pandinosaurus's full-sized avatar

Rémi Ratajczak Pandinosaurus

  • France
View GitHub Profile
@Pandinosaurus
Pandinosaurus / CubeTut.cpp
Created December 13, 2022 10:47 — forked from firestorm713/CubeTut.cpp
OpenGL draw cube and triangle
#define GLEW_STATIC
#include<stdio.h>
#include<stdlib.h>
#include<GL\glew.h>
#include<GL\GL.h>
#include<GLFW\glfw3.h>
#include<glm.hpp>
#include<gtx\transform.hpp>
#include<string>
#include<vector>
@Pandinosaurus
Pandinosaurus / maintenance-status-badges.md
Created August 28, 2022 16:06 — forked from taiki-e/maintenance-status-badges.md
Markdown Maintenance status badges
@Pandinosaurus
Pandinosaurus / better_macros_better_flags.cpp
Created August 10, 2022 07:09 — forked from fosterbrereton/better_macros_better_flags.cpp
Companion source code for the article "Better Macros, Better Flags."
/*
MIT License
Copyright 2019 Foster T. Brereton
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Pandinosaurus
Pandinosaurus / mui2-custompage-nsd.nsi
Created January 14, 2022 12:53 — forked from johncf/mui2-custompage-nsd.nsi
NSIS Example using MUI2 with a custom page built with NsDialogs.
!include nsDialogs.nsh
!include LogicLib.nsh
!include MUI2.nsh
Name nsDialogs
OutFile nsDialogs.exe
RequestExecutionLevel user
ShowInstDetails show
Var Dialog
@Pandinosaurus
Pandinosaurus / repo-rinse.sh
Created November 2, 2021 11:56 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@Pandinosaurus
Pandinosaurus / Install PyQt5 on Ubuntu with python3 .md
Created October 18, 2021 14:29 — forked from r00tdaemon/Install PyQt5 on Ubuntu with python3 .md
Install PyQt5 on Ubuntu with python3. Steps to set up PyQt5 (ubuntu). With python code generation

Installation

pip3 install --user pyqt5  
sudo apt-get install python3-pyqt5  
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

Configuring to run from terminal

@Pandinosaurus
Pandinosaurus / set_opencv_webcam.py
Created October 13, 2021 14:12 — forked from jwhendy/set_opencv_webcam.py
An example of setting webcam settings via v4l2-ctl in a python script. Some of the CAP_* settings in opencv didn't seem to work.
import cv2
import subprocess
### for reference, the output of v4l2-ctl -d /dev/video1 -l (helpful for min/max/defaults)
# brightness (int) : min=0 max=255 step=1 default=128 value=128
# contrast (int) : min=0 max=255 step=1 default=128 value=128
# saturation (int) : min=0 max=255 step=1 default=128 value=128
# white_balance_temperature_auto (bool) : default=1 value=1
# gain (int) : min=0 max=255 step=1 default=0 value=0
# power_line_frequency (menu) : min=0 max=2 default=2 value=2

Upgrade PCL from 1.7 to 1.8 on Ubuntu 16.04

Uninstall PCL 1.7

  1. Remove libpcl-dev

    sudo apt remove libpcl-dev
  2. Remove libraries

@Pandinosaurus
Pandinosaurus / Build_tensorflowlite.dll_.sh
Created April 4, 2021 14:11 — forked from iwatake2222/Build_tensorflowlite.dll_.sh
How to generate tensorflowlite.dll for Visual Studio (Windows)
# On Git Bash
cd path-to-tensorflow
git checkout 00cb358ab2e67d0b06a21901ded13c57fd47e673
./tensorflow/lite/tools/make/download_dependencies.sh
nano tensorflow/lite/build_def.bzl
###
# --- a/tensorflow/lite/build_def.bzl
# +++ b/tensorflow/lite/build_def.bzl
# @@ -159,6 +159,7 @@ def tflite_cc_shared_object(
@Pandinosaurus
Pandinosaurus / demo.cpp
Created March 21, 2021 15:16 — forked from yiling-chen/demo.cpp
Usage of OpenCV C++ API to perform objection detection using MobileNet and SSD
#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core/utils/trace.hpp>
using namespace cv;
using namespace cv::dnn;
#include <fstream>
#include <iostream>
#include <cstdlib>
using namespace std;