Skip to content

Instantly share code, notes, and snippets.

View CenTdemeern1's full-sized avatar
💭
Hello, world!

Charlotte Herngreen CenTdemeern1

💭
Hello, world!
View GitHub Profile
@CenTdemeern1
CenTdemeern1 / car
Last active December 7, 2022 18:54
Car go space
#!/bin/bash
if [ "$1" == "go" ]
then
if [ "$2" == "space" ] || [ "$2" == "run" ] || [ "$2" == "fly" ]
then
cargo run
fi
if [ "$2" == "road" ]
@CenTdemeern1
CenTdemeern1 / genchillbotcmd.py
Last active September 15, 2021 19:33
Command generator for Robot is You / Robot is Chill, please credit CenTdemeern1 for making the program when posting your creations
import numpy,cv2
def rgbtohex(v):
return "#"+hex(v[0])[2:].zfill(2)+hex(v[1])[2:].zfill(2)+hex(v[2])[2:].zfill(2)
def bgrtohex(v):
return "#"+hex(v[2])[2:].zfill(2)+hex(v[1])[2:].zfill(2)+hex(v[0])[2:].zfill(2)
def gendisplace(x,y):
return "displace"+str(-12+x-(24*x))+"/"+str(-12+y-(24*y))