Skip to content

Instantly share code, notes, and snippets.

View chibi314's full-sized avatar

Tomoki Anzai chibi314

View GitHub Profile
@chibi314
chibi314 / dspm_matrix_main.cpp
Last active September 16, 2021 11:57
esp_dsp matrix subtraction
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dsp_platform.h"
#include "esp_log.h"
#include "esp_dsp.h"
static const char *TAG = "main";
@chibi314
chibi314 / gist:cd4f4f1e488345599814759014561f50
Created June 1, 2020 10:38
eusで作ったcolladaをSTLに変換するBlenderのscript
import bpy
import os.path
import glob
meshdir = "" #please set here
for dae_file in glob.glob(os.path.join(meshdir, "*.dae")):
bpy.ops.wm.collada_import(filepath=dae_file)
name = os.path.split(dae_file)[1]
name = name.split(".")[0] + ".stl"
bpy.ops.export_mesh.stl(filepath=os.path.join(meshdir, name), axis_forward='-Z', axis_up='Y')