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
| // This code calls CMSIS-DSP for fast math on embedded ARM chips. | |
| // You can replace the CMSIS functions easily with your own | |
| // sinf, cosf, and bilinear interpolator. | |
| #include <array> | |
| #include <arm_math.h> | |
| namespace resample { | |
| /// @brief Fastest available sinf() function. |
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
| function createEnum(values) { | |
| const enumObject = {}; | |
| for (const val of values) { | |
| enumObject[val] = val; | |
| } | |
| return Object.freeze(enumObject); | |
| } | |
| const ChannelState = createEnum(['Created', 'Connecting', 'Authorizing', 'Subscribed', 'Error', 'Closed']); |
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
| #!/usr/bin/env python | |
| import argparse | |
| def parse_list(body): | |
| return map(float, body.split(',')) | |
| def list_max(lst, curMax): | |
| return reduce(max, lst, curMax) |
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
| sqlite> select * from layer_groups_annotation_layers; | |
| 1|layer_group_01|anno_layer_01 | |
| 2|layer_group_01|anno_layer_02 | |
| 3|layer_group_02|anno_layer_03 | |
| 4|layer_group_03|anno_layer_04 | |
| 5|layer_group_01|anno_layer_04 | |
| sqlite> select layerName, 'imageLayer', groupName from layer_groups_annotation_layers group by layerName; | |
| anno_layer_01|imageLayer|layer_group_01 |