Skip to content

Instantly share code, notes, and snippets.

View wjwalcher's full-sized avatar
😺

Will Walcher wjwalcher

😺
View GitHub Profile
@wjwalcher
wjwalcher / rgbtograyscale.cu
Created November 12, 2020 02:47
RGB2Grayscale
#include <cuda_runtime.h>
#include <iostream>
#include <vector>
#include <string>
#include <device_launch_parameters.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
using namespace cv;

Keybase proof

I hereby claim:

  • I am wjwalcher on github.
  • I am willwalcher (https://keybase.io/willwalcher) on keybase.
  • I have a public key ASAYPyTMiNh1NDHST4x-tUPq7o02c2O3Ef43GEHg3nys0go

To claim this, I am signing this object:

@wjwalcher
wjwalcher / smp.py
Last active September 9, 2018 08:28
SMP Example
# Stable Matching Problem, demonstrating the Gale-Shapley Algorithm
# for creating a stable matching between two sets of equal size
'''
Array representing the n Residents and n Hospitals
- in this case, n = 4
'''
ResidentAndHospital = [[3, 5, 4, 6],
[4, 3, 6, 5],
[4, 5, 3, 6],
@wjwalcher
wjwalcher / bubble.py
Created April 27, 2017 04:28
Python implementation of bubble sort, cuz' why not? [O(n^2) reacts only :c]
import random
swap = True
swaps = 0
counts = 0
numElements = int(input("How big do you want the array to be? "))
list_items = [None] * numElements
for i in range(0, numElements):
list_items[i] = random.randint(0, 100)
print(list_items)