This file contains hidden or 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
#based on:https://github.com/mvp/uhubctl | |
import os | |
import time | |
def turnthemAlloff(): | |
os.system("./uhubctl -a off -p 4") | |
os.system("./uhubctl -a off -p 3") | |
os.system("./uhubctl -a off -p 5") | |
time.sleep(3) |
This file contains hidden or 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
import random | |
import numpy as np | |
import math | |
from pprint import pprint as p | |
LinearSpeed=0.5#linear speed of the Supervisor in m/s | |
class Arena: | |
def __init__(self): | |
self.mine_locs=np.zeros(shape=(20,20)) | |
self.d_loc=[0,0] # x,y ,right hand vector system z is towards you x to the left y to the top of the screen | |
self.s_loc=[1,0] |
This file contains hidden or 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
<style id="jsbin-css"> | |
@import url(https://fonts.googleapis.com/css?family=Roboto); | |
body { | |
font-family: Roboto, sans-serif; | |
} | |
#chart { | |
max-width: 650px; |
This file contains hidden or 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
#!/usr/bin/python3 | |
#this but for arduino https://www.avrfreaks.net/forum/tut-c-gcc-and-progmem-attribute?page=all | |
import os | |
import re | |
import sys | |
import pprint | |
p=re.compile("println\(([^\)]+)\)|print\(([^\)]+)\)") | |
strings_vars="" | |
p2v_dict={} |
This file contains hidden or 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
import requests as req | |
from bs4 import BeautifulSoup | |
import pprint | |
import os | |
b_url="http://www.cvlibs.net/datasets/kitti/raw_data.php?type={0}" | |
cats=["city","residential","campus","road"] | |
all_data_files=[] |
This file contains hidden or 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
import os | |
import subprocess as sp | |
from multiprocessing import Process | |
class session_pool(): | |
""" | |
Session_pool is used to run long running processes in the background | |
Usage: | |
sess_pool=session_pool() | |
This file contains hidden or 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
# ffmpeg -f v4l2 -i /dev/video0 http://localhost:8090/feed1.ffm | |
# and run the server with ffserver -c mpjpeg_streaming.conf | |
# go to your browser in http://localhost:8090/feed.mpjpg | |
HTTPPort 8090 | |
HTTPBindAddress 0.0.0.0 | |
MaxHTTPConnections 2000 | |
MaxClients 1000 | |
MaxBandwidth 1000 | |
CustomLog - |
OlderNewer