Skip to content

Instantly share code, notes, and snippets.

@dev10110
dev10110 / CMakeLists.txt
Created July 2, 2023 00:10
julia <--> c++ using jluna
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")
@dev10110
dev10110 / dump.txt
Created October 3, 2021 04:55
ODrive Dump
#=================================
#====== print(odrv0) =============
#=================================
axis0:
clear_errors(obj: object_ref)
config: ...
controller: ...
current_state: 1 (int32)
encoder: ...
@dev10110
dev10110 / fib.py
Created September 5, 2020 13:44
Fibonacci number
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)