Skip to content

Instantly share code, notes, and snippets.

View rickstaa's full-sized avatar
🏠
Working from home

Rick Staa rickstaa

🏠
Working from home
View GitHub Profile
@rickstaa
rickstaa / test.cpp
Last active August 12, 2023 07:26
Test Gist
#include <iostream>
int main() {
std::cout << "test" << std::endl;
return 0;
}
@rickstaa
rickstaa / deep_update python method
Last active June 10, 2021 08:50
Small gist that contains a deep_update python function
import collections
from gym.utils import colorize as gym_colorize
def colorize(string, color, bold=False, highlight=False):
"""Colorize a string.
.. seealso::
This function wraps the :meth:`gym.utils.colorize` function to make sure that it
@rickstaa
rickstaa / debugger.vscode_d72d0e4c-49fd-47a8-9ef7-4b531ab69249.log
Created August 20, 2020 10:59
Debugpy logs (new version) - debugpy/issues/274
0 Starting Session:
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "/home/ricks/Development/machine_learning_control_ws/src/sandbox/test_debugger.py",
"console": "integratedTerminal",
"logToFile": true,
"env": {
"PYDEVD_THREAD_DUMP_ON_WARN_EVALUATION_TIMEOUT": "true",
Traceback (most recent call last):
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/__main__.py", line 45, in <module>
cli.main()
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/../debugpy/server/cli.py", line 267, in run_file
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/@ungap/custom-elements-builtin"></script>
<script type="module" src="https://unpkg.com/x-frame-bypass"></script>
</head>
<body>
<iframe is="x-frame-bypass" name='NewIframe' height='800px' width='100%' scrolling='yes' src='https://calendar.google.com/calendar/r' marginwidth='0px' marginheight='0px' frameborder='1' id='myFrame' allowfullscreen style='border:0px none #ffffff'></iframe>
</body>
</html>
<iframe id="optionalstuff" name='NewIframe' height='800px' width='100%' scrolling='yes' src='https://journey.cloud/timeline' marginwidth='0px' marginheight='0px' frameborder='1' id='myFrame' allowfullscreen style='border:0px none #ffffff'></iframe>
<iframe name='NewIframe' height='800px' width='100%' scrolling='yes' src='https://www.ah.nl/mijnlijst2' marginwidth='0px' marginheight='0px' frameborder='1' id='myFrame' allowfullscreen style='border:0px none #ffffff'></iframe>
@rickstaa
rickstaa / Linux RT-kernel 5.4.26 .config file
Created May 18, 2020 11:40
Linux RT-kernel 5.4.26 .config file
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.4.26 Kernel Configuration
#
#
# Compiler: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=70500
@rickstaa
rickstaa / console.log
Created October 16, 2019 14:56
Console log - moveit issue #1694
... logging to /home/ricks/.ros/log/9cfdbd0c-f024-11e9-bbdf-e4a471cb9413/roslaunch-ricks-HP-3655.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
]2;/home/ricks/Desktop/catkin_ws/src/panda_moveit_config/launch/demo.launch
started roslaunch server http://ricks-HP:43745/
SUMMARY
========
@rickstaa
rickstaa / Moveit issue log #1690
Last active October 13, 2019 09:46
Moveit issue log #1690
... logging to /home/ricks/.ros/log/f1d87c50-ed99-11e9-bd45-e4a471cb9413/roslaunch-ricks-HP-22826.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
... loading XML file [/opt/ros/melodic/etc/ros/roscore.xml]
... executing command param [rosversion roslaunch]
Added parameter [/rosversion]
... executing command param [rosversion -d]
Added parameter [/rosdistro]