Skip to content

Instantly share code, notes, and snippets.

View ccf19881030's full-sized avatar
🌴
On vacation

ccf19881030.github.io ccf19881030

🌴
On vacation
View GitHub Profile
@ccf19881030
ccf19881030 / 1_install_opencv_win.md
Created January 29, 2024 14:02 — forked from demid5111/1_install_opencv_win.md
Instructions for installing opencv on Windows 10

Install OpenCV 4.5 on Windows 10

Pre-configured OpenCV for Python from PyPi

  1. open the terminal (Ctrl+R + cmd)
  2. check Python3 installation: py --version
  3. go to official website to learn details: https://pypi.org/project/opencv-python/
  4. choose the most complete package and run: py -m pip install opencv-contrib-python
  5. check installation by entering the Python REPL: py
  6. import tha library: import cv2
@demid5111
demid5111 / 1_install_opencv_win.md
Last active April 29, 2024 04:04
Instructions for installing opencv on Windows 10

Install OpenCV 4.5 on Windows 10

Pre-configured OpenCV for Python from PyPi

  1. open the terminal (Ctrl+R + cmd)
  2. check Python3 installation: py --version
  3. go to official website to learn details: https://pypi.org/project/opencv-python/
  4. choose the most complete package and run: py -m pip install opencv-contrib-python
  5. check installation by entering the Python REPL: py
  6. import tha library: import cv2
@sophea
sophea / JwtTokenService.java
Last active April 30, 2024 01:10
JwtTokenService.java
package com.sma.security.config;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
@Component
public class JwtTokenService {
public static final long JWT_TOKEN_VALIDITY = 5 * 60 * 60;
@ayan-b
ayan-b / c-cpp-oops.md
Last active January 24, 2024 19:27
C, C++ & OOPS for Interviews
@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active April 28, 2024 19:51
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@mbinna
mbinna / effective_modern_cmake.md
Last active May 1, 2024 12:35
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@luluco250
luluco250 / MouseRaw.cpp
Last active April 16, 2024 08:51
Getting raw mouse input with the native Windows API
/*
Example of how to get raw mouse input data using the native Windows API
through a "message-only" window that outputs to an allocated console window.
Not prepared for Unicode.
I don't recommend copy/pasting this, understand it before integrating it.
*/
// Make Windows.h slightly less of a headache.
#define NOMINMAX
@Hamayama
Hamayama / 1007_MinGW64_Install.md
Last active January 23, 2024 05:29
MSYS2/MinGW-w64 (64bit/32bit) インストール手順 メモ

MSYS2/MinGW-w64 (64bit/32bit) インストール手順 メモ

  • 自分がインストールしたとき (2022年9月) の参考用のメモです。
    (情報が古くなっている可能性があります)
  1. MSYS2 のページ
    https://msys2.github.io/
    から、MSYS2 のインストーラ ( msys2-x86_64-20220904.exe ) を取得して実行します。
    (注意:32bit 版のインストーラは、提供されなくなりました。
@brcha
brcha / qtyaml.h
Created September 30, 2014 13:09
Qt Yaml support using yaml-cpp library
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* ***** END LICENSE BLOCK ***** */
/*