This file contains hidden or 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
<?xml version="1.0"?> | |
<root> | |
<!-- mac management --> | |
<item> | |
<name>Set Command_L + Esc to Window Switch</name> | |
<identifier>private.cmd_l_esc_to_window_switch</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::ESCAPE, |
This file contains hidden or 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
function detach(fn, cls) { | |
if (typeof cls.prototype[fn] !== 'function') { | |
throw new Error(fn + ' is not an instance function'); | |
} | |
return cls.prototype[fn].call.bind(cls.prototype[fn]); | |
} | |
var slice = detach('slice', Array); | |
var map = detach('map', Array); |
This file contains hidden or 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
" pathogen | |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
" colors | |
set t_Co=256 | |
colorscheme desert256v2 |
This file contains hidden or 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
import cv2 | |
from flask import Flask, Response | |
from ultralytics import YOLO | |
app = Flask(__name__) | |
model2 = YOLO("models/yolov8n-face.pt") | |
cam = cv2.VideoCapture(0) | |
if not cam.isOpened(): |
OlderNewer