How to switch over from SD-card to USB-attached device (USB thumbstick, USB enclosed SSD or HDD, etc.) to have more durable storage option.
- 
Connect USB device to your RPI 
- 
Make sure USB device visible by the system 
| #!/bin/sh | |
| echo "" | |
| echo "-----------------------------------" | |
| echo " Installing Flash Debugger" | |
| echo "-----------------------------------" | |
| sudo echo "" | 
| package Mojolicious::Plugin::Coro; | |
| use Mojo::Base 'Mojolicious::Plugin'; | |
| use Coro; | |
| use Mojo::IOLoop; | |
| # Wrap application in coroutine and reschedule main coroutine in event loop | |
| sub register { | |
| my ($self, $app) = @_; | |
| my $subscribers = $app->plugins->subscribers('around_dispatch'); | 
The goal of this example is to show how an existing C codebase for numerical computing (here c_code.c) can be wrapped in Cython to be exposed in Python.
The meat of the example is that the data is allocated in C, but exposed in Python without a copy using the PyArray_SimpleNewFromData numpy