Skip to content

Instantly share code, notes, and snippets.

@stri8ed
stri8ed / gist:38de22fd1bf3ea2cddeb2bd32f2a667e
Last active September 11, 2023 14:40
Compile opencv with Cuda on Windows 11 via Cmake CLI
cmake .. -D CMAKE_BUILD_TYPE=RELEASE \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=OFF \
-D OPENCV_ENABLE_NONFREE=ON \
-D WITH_CUDA=ON \
-D WITH_CUDNN=ON \
-D OPENCV_DNN_CUDA=ON \
-D ENABLE_FAST_MATH=1 \
-D CUDA_FAST_MATH=1 \
-D CUDA_ARCH_BIN=7.5 \
@stri8ed
stri8ed / chars.txt
Created August 1, 2018 13:30
Homoglyph Chars
#
# Each line in this file contains a sequence of characters that are homoglyphs.
#
# This file was automatically generated, be careful about editing it - your changes may be
# overwritten if someone runs the generator script again.
#
# Source code for this project available from: http://github.com/codebox/homoglyph
#
            

  
!ǃⵑ!
@stri8ed
stri8ed / spawn.js
Created July 19, 2015 18:26
requirejs-worker-spawn
define(function(require) {
'use strict';
const REQUIRE_URL = getRequireJsUrl();
const BASE_URL = getRequireJSBaseUrl();
function spawn(data, fn) {
return new Promise(function(res, rej) {
let wrapper = buildWrapper(fn);
let url = functionToUrl(wrapper);
@stri8ed
stri8ed / jenks.js
Last active July 6, 2022 01:33 — forked from tmcw/README.md
function jenks(data, n_classes) {
if (n_classes > data.length) return null;
data = data.slice().sort(function (a, b) {
return a - b;
});
var matrices = getMatrices(data, n_classes);
var lower_class_limits = matrices.lower_class_limits;