Skip to content

Instantly share code, notes, and snippets.

View RobotGrrl's full-sized avatar
🤖
Robots!!!

RobotGrrl RobotGrrl

🤖
Robots!!!
View GitHub Profile
@RobotGrrl
RobotGrrl / gist:8441819aa8b581826a128f46773775fc
Created October 10, 2022 20:50
Zephyr west build error
(.venv) Inquisitive-Lexicon-Big-8:zephyr frankenteddy$ west build -p always -b stm32l496g_disco samples/basic/blinky
-- west build: making build dir /Users/frankenteddy/zephyrproject/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/frankenteddy/zephyrproject/zephyr/samples/basic/blinky
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 (found suitable version "3.10.7", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /Users/frankenteddy/Library/Caches/zephyr
-- Zephyr version: 3.2.99 (/Users/frankenteddy/zephyrproject/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: stm32l496g_disco
@RobotGrrl
RobotGrrl / Cool Blink
Created April 8, 2022 03:12
Blinks at a cool rate
@RobotGrrl
RobotGrrl / gist:5a5d1ddaa3378529f6da9907ee8086f0
Created October 17, 2018 21:11
Aframe register component question
AFRAME.registerComponent('voxelarena', {
init: function () {
var parentEl = this.el;
var col_ind = 0;
var row_ind = 0;
var num_tiles = 0;
setInterval(function () {
if(num_tiles >= 7*7) return;
var childEl = document.createElement('a-entity');
python3 Object_detection_picamera.py
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.4 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.5
return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 432, got 412
return f(*args, **kwds)
Traceback (most recent call last):
File "Object_detection_picamera.py", line 97, in <module>
image_tensor = detection_graph.get_tensor_by_name('image_tensor:0')
File "/home/pi/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 3789, in get_tensor_by_name
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
@RobotGrrl
RobotGrrl / pi_prep_for_processing
Last active July 30, 2018 19:16
pi prep for processing using the pi cam
0. download the latest pi + processing rasbian -- this is written using 3.3.7.2 (the previous revision had an error that we encountered too https://github.com/gohai/processing-glvideo/issues/53)
1. change the config to legacy gl driver... as enabling the kms ones would actually disable gpu video support (says so here: https://github.com/gohai/processing-glvideo#raspbian)
sudo raspi-config
2. change the memory available (gui - settings)
256
3. make sure interfaces are on
ssh (if you want to remote in to the pi)
@RobotGrrl
RobotGrrl / confusingservobug.txt
Last active January 12, 2018 07:32
Confusing Servo Bug
Quick overview of the Bowie Lib:
- Modules like BowieHopper, BowieScoop, BowieComms, etc. all get imported by MegaBowieShoreline.
- This is so that there can eventually be a MegaBowieSeedPlanter, for the next missions etc.
In MegaBowieShoreline.cpp, void MegaBowieShoreline::begin() {
This is where the objects get initialised
Bowie Lib:
https://drive.google.com/open?id=1UxYtklpj5Cls7tZ_94N0011cSO4xvv_t
@RobotGrrl
RobotGrrl / randyIsAwesome
Created October 17, 2016 15:33
randyIsAwesome RGB Shades
void randyIsAwesome() {
// startup tasks
if (effectInit == false) {
effectInit = true;
effectDelay = 100;
}
for (byte x = 0; x < kMatrixWidth; x++) {
for (int y = 0; y < kMatrixHeight; y++) {
@RobotGrrl
RobotGrrl / timelapse.sh
Last active August 29, 2018 14:08
script for making a timelapse video from images
ffmpeg -r 30 -f image2 -i image-%d.JPG -f mp4 -q:v 0 -vcodec mpeg4 -r 30 -vf scale=1920:-1 -vb 20M output.mp4
#before the 2nd -f put -vframes 100 for the first 100 frames
# save an image from a video every 10 seconds
# ffmpeg -i input.mkv -r 0.1 %06d.png
@RobotGrrl
RobotGrrl / Spheramid
Created April 1, 2015 19:49
Pyramid morphed with a sphere
import fab
title('spheramid')
input('x0',float)
input('y0',float)
input('z0',float)
input('r',float)
input('width',float)
input('height',float)
@RobotGrrl
RobotGrrl / replicator g skeinforge profile location
Last active August 29, 2015 14:10
(i always forget this, so placing it here for useful reference)
Profile Location
Duplicated profiles are saved to your home directory and will show up between different versions of ReplicatorG.
Windows:
/Users/[USERNAME]/.replicatorg/sf_[VER]_profiles/
Mac:
~/.replicatorg/sf_[VER]_profiles/