Skip to content

Instantly share code, notes, and snippets.

View sandman's full-sized avatar
:electron:
Exploring

sandman

:electron:
Exploring
View GitHub Profile
@sandman
sandman / bv_submit_bug.js
Last active September 9, 2020 08:17
Demo of Bootstrap validator double submit bug
$(document).ready(function () {
$('#payment-form').bootstrapValidator({
// added validators including callback validation for date expiry etc..
});
$("#payment-form").submit(function (event) {
@sandman
sandman / carla_manual_control.py
Created December 14, 2017 17:04
Carla manual control based on Joystick
#!/usr/bin/env python3
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB), and the INTEL Visual Computing Lab.
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
# Keyboard controlling for carla. Please refer to carla_use_example for a
# simpler and more documented example.
#!/usr/bin/env python3
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB), and the INTEL Visual Computing Lab.
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
# Keyboard controlling for carla. Please refer to client_example for a simpler
# and more documented example.
@sandman
sandman / manual_control.py
Last active April 19, 2019 14:28
Steering wheel control for carla
#!/usr/bin/env python3
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
# Keyboard controlling for CARLA. Please refer to client_example.py for a simpler
# and more documented example.
@sandman
sandman / buildlog
Created April 18, 2018 15:58
Rebuild carla error
xyz@xyz-XPS-8900:~/Downloads/carla-0.8.1$ UE4_ROOT=~/UnrealEngine_4.18 ./Rebuild.sh
Using Unreal Engine at '/home/xyz/UnrealEngine_4.18'
Making CarlaServer...
ERROR: Missing protobuf compiler.
Did you forget to run Setup.sh?
Makefile:50: recipe for target 'protobuf' failed
make: *** [protobuf] Error 1
Cleaning up CARLA Plugin...
Cleaning up CARLAUE4...
Generate Unreal project files...
@sandman
sandman / Setup.sh_log
Created April 18, 2018 16:02
Output of setup.sh for Carla 0.8.1
xyz@xyz-XPS-8900:~/Downloads/carla-0.8.1$ ./Setup.sh
Folder llvm-source already exists, skipping git clone...
-- The C compiler identification is Clang 3.9.1
-- The CXX compiler identification is Clang 3.9.1
-- The ASM compiler identification is Clang
-- Found assembler: /usr/bin/clang-3.9
-- Check for working C compiler: /usr/bin/clang-3.9
-- Check for working C compiler: /usr/bin/clang-3.9 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
@sandman
sandman / README.md
Last active February 11, 2021 18:57 — forked from corenel/README.md
Install NVDEC and NVENC as GStreamer plugins

Install NVDEC and NVENC as GStreamer plugins

Environment

  • Ubuntu 18.04
  • NVIDIA driver 430.40
  • NVIDIA Video Codec SDK 9.0.20

Steps

@sandman
sandman / nvidia-xfce-desktop-container-popos-22.04
Created August 26, 2022 18:12
Installing and running a Dockerized NVIDIA Xfce desktop with ROS2 Foxy
# Install latest version nvidia-docker2 on PopOS 22.04
## PopOS does not take the latest upstream NVIDIA Container runtime which is needed to run the container
## Run the below steps
### Add a new preference entry in /etc/apt/preferences.d/pop-default-settings
Package: *
Pin: origin nvidia.github.io
Pin-Priority: 1002
@sandman
sandman / Python requirements.txt auto-generation
Created January 2, 2023 15:26
Automatically generate requirements.txt
pip3 install pip-tools pipreqs
# pipreqs generates a requirements.in file and pip-compile generates the requirements.txt from it
pipreqs --savepath=requirements.in && pip-compile
name : The name of the object
flags: readable, writable
String. Default: "nvv4l2h265enc0"
parent : The parent of the object
flags: readable, writable
Object of type "GstObject"
qos : Handle Quality-of-Service events from downstream
flags: readable, writable
Boolean. Default: false
device : Device location