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
| cmake_minimum_required(VERSION 3.1) | |
| project(hello) | |
| # set file locations | |
| set(JULIA_PATH "/usr/local/julia") | |
| set(JULIA_INCLUDE_DIRS "${JULIA_PATH}/include/julia") | |
| set(JULIA_LIBRARY "${JULIA_PATH}/lib") | |
| set(JLUNA_INCLUDE_DIRS "/root/jluna") |
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
| #================================= | |
| #====== print(odrv0) ============= | |
| #================================= | |
| axis0: | |
| clear_errors(obj: object_ref) | |
| config: ... | |
| controller: ... | |
| current_state: 1 (int32) | |
| encoder: ... |
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
| fibStore = {} | |
| def fibWrapper(num, mode): | |
| # num : number to compute | |
| # mode : 'r' for return or 'p' for print | |
| if not (mode == 'r' or mode == 'p'): | |
| raise ValueError("mode must be 'r' or 'p'") | |
| value = fib(num) |