This file contains 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
""" | |
Sample script to use ThreadPoolExecutor in a way that is easy to interrupt. | |
""" | |
import concurrent.futures | |
import threading | |
from tqdm import tqdm | |
# A flag indicating whether jobs should be cancelled. | |
cancel_jobs = threading.Event() |
This file contains 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
### This script wraps all executables in the anaconda bin folder so that they can be used without adding Anaconda | |
### to the path which would break some functionality of ROS (Robot Operating System) | |
### | |
### The commands e.g. jupyter notebook will cause the script to add anaconda to the path, start jupyter notebook | |
### and after jupyter notebook terminated remove anaconda from the path again | |
### | |
### Notable commands: | |
### * release-the-snake Adds conda to the path and removes all aliases defined by this script | |
### Conda will stay in the PATH until the end of the session (terminal is closed) or | |
### until "cage-the-snake" is called |
This file contains 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
cmake_minimum_required(VERSION 3.1) | |
project(dw_wrapper) | |
set (CMAKE_CXX_STANDARD 11) | |
# FindDriveworks.cmake, ArchConfiguration.cmake, and LibFindMacros.cmake were needed for my setup they are taken from driveworks/samples/cmake/ | |
# ArchConfiguration.cmake was the only file that needed small changes, remove the fatal error on line 17 and add the following lines in its place | |
# set(VIBRANTE TRUE) | |
# add_definitions(-DVIBRANTE) | |
# this is the path I placed the driveworks cmake files in |
This file contains 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
;; outlet code for implementing traditional macro expansion | |
;; macros | |
(define (expand form) | |
(cond | |
((variable? form) form) | |
((literal? form) form) | |
((macro? (car form)) | |
(expand ((macro-function (car form)) form))) |