Skip to content

Instantly share code, notes, and snippets.

View noodlehaus's full-sized avatar
😎
TPC rewrite

noodlehaus noodlehaus

😎
TPC rewrite
View GitHub Profile
@noodlehaus
noodlehaus / private.xml
Last active October 7, 2016 03:27
Karabiner bindings for pok3r
<?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,
@noodlehaus
noodlehaus / detach.js
Created February 14, 2017 03:47
detach methods as functions
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);
@noodlehaus
noodlehaus / .vimrc
Created December 18, 2019 07:19
vimrc
" pathogen
execute pathogen#infect()
syntax on
filetype plugin indent on
" colors
set t_Co=256
colorscheme desert256v2
@noodlehaus
noodlehaus / location-check.py
Created August 23, 2023 16:28
Check if object of interest is within the bounding box.
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():