Skip to content

Instantly share code, notes, and snippets.

View Heavy02011's full-sized avatar

Rainer Bareiß Heavy02011

View GitHub Profile
<?php
/*
* Converts CSV to JSON
* This is forked from @robflaherty's csv-to-json.php gist: https://gist.github.com/robflaherty/1185299
* Fork Modification $feed = $_GET["file"] to fetch feed url via a url variable https://gist.github.com/cherihung/5287225
*/
header('Content-type: application/json');
// Get CSV feed location in query string passed
@Heavy02011
Heavy02011 / rnn_example.R
Created November 6, 2016 07:05 — forked from mick001/rnn_example.R
Sine wave prediction with recurrent neural networks in R. Full article at: https://firsttimeprogrammer.blogspot.com/2016/08/plain-vanilla-recurrent-neural-networks.html
# Clear workspace
rm(list=ls())
# Load libraries
require(rnn)
# Set seed for reproducibility purposes
set.seed(10)
# Set frequency
```
(dd) rainer@neuron:~/dev/40-DeepDrive/deepdrive$ python example.py
### ><>|><> PyInit_deepdrive_client <><|<>< ###
#### ><> ><> PyInit_deepdrive_simulation <>< <>< ####
/home/rainer/.conda/envs/dd/lib/python3.7/site-packages/gym/envs/registration.py:14: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
result = entry_point.load(False)
## ><>|><> PyInit_deepdrive_capture <><|<>< ##
Init numPy for PyCaptureCameraObject
Init numPy for PyCaptureLastCollisionObject
Init numPy for PyCaptureSnapshotObject
```
(dd) rainer@neuron:~/dev/40-DeepDrive/deepdrive$ python example.py
### ><>|><> PyInit_deepdrive_client <><|<>< ###
#### ><> ><> PyInit_deepdrive_simulation <>< <>< ####
/home/rainer/.conda/envs/dd/lib/python3.7/site-packages/gym/envs/registration.py:14: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
result = entry_point.load(False)
## ><>|><> PyInit_deepdrive_capture <><|<>< ##
Init numPy for PyCaptureCameraObject
Init numPy for PyCaptureLastCollisionObject
Init numPy for PyCaptureSnapshotObject
```
(dd) rainer@neuron:~/dev/40-DeepDrive/deepdrive$ python install.py
Checking python version...check!
Checking for valid Tensorflow installation
Tensorflow 1.15.0 detected - meets min version (1.7)
running command: /home/rainer/.conda/envs/dd/bin/python -m pip install sarge wheel requests boto
Requirement already satisfied: sarge in /home/rainer/.conda/envs/dd/lib/python3.7/site-packages (0.1.5.post0)
Requirement already satisfied: wheel in /home/rainer/.conda/envs/dd/lib/python3.7/site-packages (0.33.6)
Requirement already satisfied: requests in /home/rainer/.conda/envs/dd/lib/python3.7/site-packages (2.22.0)
Requirement already satisfied: boto in /home/rainer/.conda/envs/dd/lib/python3.7/site-packages (2.49.0)
@Heavy02011
Heavy02011 / libgcc_s.so.1onsystem.md
Created November 24, 2019 08:02
libgcc_s.so.1 on system
(dd) rainer@neuron:~$ sudo find / -name libgcc_s.so.1 &> listgcc.txt

(dd) rainer@neuron:~$ more listgcc.txt 
/lib/x86_64-linux-gnu/libgcc_s.so.1
/lib/i386-linux-gnu/libgcc_s.so.1
/snap/vectr/2/lib/x86_64-linux-gnu/libgcc_s.so.1
/snap/vlc/1049/lib/x86_64-linux-gnu/libgcc_s.so.1
/snap/vlc/770/lib/x86_64-linux-gnu/libgcc_s.so.1
/snap/core/7917/lib/i386-linux-gnu/libgcc_s.so.1
* linux ubuntu only now
Get donkeycar, if you don't have it. If you do, just checkout dev.
* cd ~/projects
* git clone https://github.com/autorope/donkeycar
* cd donkeycar
* git checkout dev
Install conda. Optional but recommended
* wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
"""
Script to drive a keras TF model with the Virtual Race Environment.
Usage:
racer.py (--model=<model>) (--host=<ip_address>) (--name=<car_name>)
Options:
-h --help Show this screen.
"""
#!/usr/bin/env python3
"""
Usage:
simple_cv_racer.py --name=your_name
Options:
-h --help Show this screen.
"""
@Heavy02011
Heavy02011 / telemetry.py
Created August 21, 2020 19:08
simple crude version of a part giving back telemetry messages of the simulator
#!/usr/bin/env python3
"""
Scripts for reading telemtry data of a DonkeySimObject
author: Rainer Bareiß, 2020
many thanks to the Parking Lot Nerds team &
especially Tawn for so much support and lots of valuable hints
"""