This file contains 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 setExtension(bytes calldata extensionData) external payable; | |
function callExtension( | |
address account, | |
uint256 amount, | |
bytes calldata extensionData | |
) external payable returns (bool mint, uint256 amountOut); | |
event ExtensionSet(address dao, bytes payload) |
This file contains 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
sequenceDiagram | |
Project Manager->>DAO: propose(budget) | |
Note right of Project Manager: prepare and propose | |
Note right of Project Manager: key goals, budget and timeline | |
Members-->>DAO: approve(proposal) | |
Note right of Members: permit spending | |
Note right of Members: limited to budget and deadline |
This file contains 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
/** | |
* | |
* Test orderBy support | |
* | |
*/ | |
import Dexie from 'dexie' | |
/** | |
* LocalDatabase API for browser indexeddb objects | |
*/ |
This file contains 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
By making a contribution to this project, I certify that: | |
(a) The contribution was created in whole or in part by me and I | |
have the right to submit it under the Apache 2.0 license; or | |
(b) The contribution is based upon previous work that, to the best | |
of my knowledge, is covered under an appropriate open source | |
license and I have the right under that license to submit that | |
work with modifications, whether created in whole or in part | |
by me, under the Apache 2.0 license; or |
This file contains 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
version: "3.7" | |
services: | |
ambianic-edge: | |
container_name: ambianic-edge | |
restart: unless-stopped | |
privileged: true | |
image: ambianic/ambianic-edge:latest | |
network_mode: "host" | |
volumes: | |
- /dev/bus/usb:/dev/bus/usb |
This file contains 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
###################################### | |
# Ambianic main configuration file # | |
###################################### | |
version: '1.2.4' | |
# path to the data directory | |
data_dir: &data_dir ./data | |
# Set logging level to one of DEBUG, INFO, WARNING, ERROR | |
logging: |
This file contains 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
def _process_kill(pid, signal=0): | |
"""Send a signal to a process. | |
:Returns: | |
---------- | |
True if the pid is dead | |
with no signal argument, sends no signal. | |
""" |
This file contains 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
################ | |
# Optional ffmpeg input parameters. Change these only if you are experimenting with ffmpeg parameter optimization. | |
# Changing these parameters will override the default settings and may corrupt the video capture flow. | |
################ | |
ffmpeg_input_args: | |
- -avoid_negative_ts | |
- make_zero | |
- -fflags | |
- nobuffer | |
- -flags |
This file contains 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
dataset = pcap_io.PcapDataset(url_filenames, batch=1) | |
packets_total = 0 | |
for v in dataset: | |
(packet_timestamp, packet_data) = v | |
if packets_total == 0: | |
assert packet_timestamp.numpy()[0] == 1084443427.311224 # we know this is the correct value in the test pcap file | |
assert len(packet_data.numpy()[0]) == 62 # we know this is the correct packet data buffer length in the test pcap file | |
packets_total += 1 | |
assert packets_total == 43 # we know this is the correct number of packets in the test pcap file |
This file contains 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
"""PcapDataset""" | |
import tensorflow as tf | |
from tensorflow_io.core.python.ops import data_ops as data_ops | |
from tensorflow_io import _load_library | |
pcap_ops = _load_library('_pcap_ops.so') | |
class PcapDataset(data_ops.Dataset): | |
"""A pcap Dataset. Pcap is a popular file format for capturing network packets. | |
""" |
NewerOlder