Skip to content

Instantly share code, notes, and snippets.

View Ridley-nelson17's full-sized avatar
😜
sleeping ;)

Ridley Nelson Ridley-nelson17

😜
sleeping ;)
  • Minneapolis, Minnesota
  • 19:40 (UTC -05:00)
View GitHub Profile
@Ridley-nelson17
Ridley-nelson17 / index.html
Created March 18, 2019 14:13
OpenCV.js Face Detection (WebAssembly)
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<body>
<div id="container">
<canvas class="center-block" id="canvasOutput" width=320 height=240></canvas>
</div>
<div class="text-center">
<input type="checkbox" id="face" name="classifier" value="face" checked>
<label for="face">face</label>
<input type="checkbox" id="eye" name="cascade" value="eye">
<label for="eye">eye</label>
@Ridley-nelson17
Ridley-nelson17 / GeoSolver.py
Created January 29, 2020 22:32
“Janky” whipped together code that I plan on using to build a Geometry helper with
class GeoSolver:
def __init__(self):
return
def triangular_solver(self, a=None, b=None, c=None):
def solve_for_angles(self, a, b, c):
if (a & b & c == None):
return
else:
return_value = 180
@Ridley-nelson17
Ridley-nelson17 / Camera.py
Last active April 15, 2020 19:04
OpenCV-Object-Detection
import cv2
import numpy as np
from matplotlib import pyplot as plt
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
# Detect faces
faceCascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")
eyeCascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_eye.xml")
@Ridley-nelson17
Ridley-nelson17 / PCSpecsOreoCat2022.md
Last active August 4, 2022 01:26
My PC specs for 2022

CLX Gaming

Custom Build 1 Total Cost: $1257.00
Processor AMD Ryzen™ 5 3600X 3.80GHz Hexa-Core
Motherboard MSI B550M PRO-VDH WIFI - Micro ATX
Memory 2x 8GB DDR4-3200 Patriot Signature Line
Graphics Card AMD Radeon™ RX 6600 8GB
OS Storage 500GB M.2 PCIe 3.0 NVMe SSD Major Brand
Cooling Solution Standard Cooling Fan
crunch 0 25 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX YZ0123456789 | aircrack-ng --bssid aa:aa:aa:aa:aa:aa -w- cap.cap
@Ridley-nelson17
Ridley-nelson17 / 5_line_mass_downloader.py
Created May 8, 2023 08:00
A mass file downloader written in only five lines. It could be shrunk and improved but I made this at 3:01AM
import os, urllib.request
from urllib.parse import urlsplit
LINK_FILE, links, filter, download = 'links.txt', [], (lambda l=None: links.append(l.replace('\n', '')) if l != "" or l != "\n" else None), (lambda url=None: urllib.request.urlretrieve(url, os.path.basename(urlsplit(url).path)) if url != None else None)
for line in open(os.path.join(os.getcwd(), LINK_FILE), 'w+').readlines(): filter(line)
for l in links: download(l)
@Ridley-nelson17
Ridley-nelson17 / hyperv-install-fix.bat
Created June 13, 2023 12:06
Fixes the error on some computers when trying to enable Hyper-V
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
Pause