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
package com.example; | |
import io.quarkus.runtime.annotations.QuarkusMain; | |
import io.smallrye.mutiny.Context; | |
import io.smallrye.mutiny.Multi; | |
import io.smallrye.mutiny.Uni; | |
import lombok.extern.slf4j.Slf4j; | |
import java.io.*; | |
import java.util.stream.Collectors; |
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
@QuarkusMain | |
@Slf4j | |
public class ExampleResource { | |
public static void main(String[] args) throws IOException { | |
Multi.createFrom().iterable(Arrays.asList(1,2,3,4)) | |
.onItem() | |
.call(integer -> { | |
System.out.println(integer); | |
if(integer.equals(2)){ |
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
#!/bin/bash | |
# Install ros kinetic on raspian buster | |
cd ~ | |
wget http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz | |
tar xvzf boost_1_58_0.tar.gz | |
mkdir ~/build | |
cd boost_1_58_0/ | |
sudo ./bootstrap.sh | |
sudo ./b2 install —prefix="../build" |
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
# USAGE | |
# python distance_to_camera.py | |
# import the necessary packages | |
from imutils import paths | |
import numpy as np | |
import imutils | |
import cv2 |
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
/* | |
* Calculate SHA1 | |
* @Compile with -lcrypto | |
* _________________________________________________________________ | |
* |Openssl MacOs install | | |
* ----------------------------------------------------------------- | |
* |brew install openssl | | |
* |brew link --force openssl | | |
* |ln -s /usr/local/opt/openssl/include/openssl /usr/local/include| | |
* ----------------------------------------------------------------- |
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
HEX | |
2000B420 CONSTANT ARM_TIMER_CNT | |
: us@ ARM_TIMER_CNT @ ; | |
: usecs ; | |
: msecs 1000 * ; | |
: secs 1000000 * ; | |
: us us@ + BEGIN DUP us@ - 0<= UNTIL DROP ; | |
: LEDON 00010000 20200028 ! ; | |
: LEDOFF 00010000 2020001C ! ; | |
: BLINK BEGIN LEDON 42 msecs us LEDOFF 42 msecs us 0 UNTIL ; |
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
: LEDON 00010000 20200028 ! ; | |
: LEDOFF 00010000 2020001C ! ; |