This file contains 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
""" | |
Make a brainfuck interpreter. | |
""" | |
import sys | |
bf = "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | |
def run(program): | |
inputptr = 0 |
This file contains 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
""" | |
Make a program that takes an image and classifies it as either "a goat" or "not a goat" | |
""" | |
# load the image and convert it to grayscale | |
image = cv2.imread("images/goat.png") | |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
# initialize the list of class labels and the image | |
CLASSES = ["background", "aeroplane", "bicycle", "bird", |
This file contains 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
Welcome to the Vyxal chat room, @username! I'm the Vyxal Bot. Use `!!/help` to see what I can do! | |
If you're new to Vyxal and want to try it out, use `!!/info` to get some useful links. | |
Once you're ready to try it out, check out [these](https://gist.github.com/cairdcoinheringaahing/7aadf5e3385a039ab461955a936cbc43) challenges to test your skills. | |
If you ever get stuck on a problem or need a bit of help finding something, there's almost always someone online who can help out, so give a shout! |