- open the terminal (Ctrl+R + cmd)
- check Python3 installation:
py --version
- go to official website to learn details: https://pypi.org/project/opencv-python/
- choose the most complete package and run:
py -m pip install opencv-contrib-python
- check installation by entering the Python REPL:
py
- import tha library:
import cv2
- open the terminal (Ctrl+R + cmd)
- check Python3 installation:
py --version
- go to official website to learn details: https://pypi.org/project/opencv-python/
- choose the most complete package and run:
py -m pip install opencv-contrib-python
- check installation by entering the Python REPL:
py
- import tha library:
import cv2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
⚠️ ⚠️ This Gist Has Been Moved to This Repo ⚠️ ⚠️
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
- 自分がインストールしたとき (2022年9月) の参考用のメモです。
(情報が古くなっている可能性があります)
- MSYS2 のページ
https://msys2.github.io/
から、MSYS2 のインストーラ ( msys2-x86_64-20220904.exe ) を取得して実行します。
(注意:32bit 版のインストーラは、提供されなくなりました。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ***** 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 ***** */ | |
/* |