Skip to content

Instantly share code, notes, and snippets.

View cruzryan's full-sized avatar
🤺
Debugging

Ryan Cruz cruzryan

🤺
Debugging
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>OpenCV livestream</title>
</head>
<body>
<canvas id="canvasElement"></canvas>
<script>
var socket = new WebSocket("ws://PC2_IP_ADDRESS:8080/");
@cruzryan
cruzryan / main.py
Created January 10, 2023 02:13
Robot that knows how to play tic tac toe
from gpiozero import Servo
from time import sleep
import cv2
import numpy as np
from random import randint
#All GPIO
base_pin = 2
first_pin = 3
second_pin = 4
import rospy
from sensor_msgs.msg import PointCloud2
import sensor_msgs.point_cloud2 as pc2
from geometry_msgs.msg import Point, Pose, Quaternion
import numpy as np
import random
import math
# Subscriber callback function for the D415 depth data
def depth_callback(data):
@cruzryan
cruzryan / pyMicro.py
Last active April 28, 2020 01:01
wash your hands after using this (not for prod)
#MicroLang
import random
import string
#Lexer
def findIn(strToFind, i, asm = False, srcCode = None, number_to_find = 1):
src = code_split if srcCode == None else srcCode
word = src[i]
y = -1
### Keybase proof
I hereby claim:
* I am cruzryan on github.
* I am ncb0963 (https://keybase.io/ncb0963) on keybase.
* I have a public key ASDzl3JMsYAjFWnaWtZ_VkKqSmnSA0SMcEHuEfeeE_ukWgo
To claim this, I am signing this object: