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
#ifndef _PID_SOURCE_ | |
#define _PID_SOURCE_ | |
#include <iostream> | |
#include <cmath> | |
#include "pid.h" | |
using namespace std; | |
class PIDImpl |
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
/*M/////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. | |
// | |
// By downloading, copying, installing or using the software you agree to this license. | |
// If you do not agree to this license, do not download, install, | |
// copy or use the software. | |
// | |
// | |
// License Agreement |
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
Dont use optimization flag for compilation if use MYRIAD |
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
#pragma once | |
#include <exception> | |
#include <librealsense2/rs.hpp> | |
#include <librealsense2/rsutil.h> | |
#include "opencv2/highgui.hpp" | |
#include "opencv2/imgproc.hpp" | |
using namespace cv; |
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
// Fisheye to spherical conversion | |
// Assumes the fisheye image is square, centered, and the circle fills the image. | |
// Output (spherical) image should have 2:1 aspect. | |
// Strange (but helpful) that atan() == atan2(), normally they are different. | |
//Refer http://blog.yeezia.com/?post=91 | |
kernel vec4 fish2sphere(sampler src) | |
{ | |
vec2 pfish; | |
float theta,phi,r; | |
vec3 psph; |
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
sudo mkdir -p /etc/systemd/system/docker.service.d | |
sudo nano /etc/systemd/system/docker.service.d/proxy.conf | |
[Service] | |
Environment="HTTP_PROXY=http://ip:port" | |
Environment="HTTPS_PROXY=http://ip:port/" | |
Environment="NO_PROXY="localhost,127.0.0.1,::1" | |
mkdir ~/.docker | |
nano ~/.docker/config.json |
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/sh | |
git filter-branch -f --env-filter ' | |
OLD_EMAIL="[email protected]" | |
CORRECT_NAME="Nguyen Xuan Huong" | |
CORRECT_EMAIL="[email protected]" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" |
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
1. Jni: | |
extern "C" JNIEXPORT void JNICALL | |
Java_com_example_javaactivity_initApplicationNative( | |
JNIEnv* env, jobject obj) | |
{ | |
__android_log_print(ANDROID_LOG_VERBOSE, "jni", "jni initApplicationNative"); | |
env->GetJavaVM(&javaVM); | |
jclass cls = env->GetObjectClass(obj); | |
activityClass = (jclass) env->NewGlobalRef(cls); | |
activityObj = env->NewGlobalRef(obj); |
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
Checked test: toFixed(0) x 5,057,837 ops/sec ±0.56% (66 runs sampled) | |
Checked test: Math.floor x 4,522,238 ops/sec ±0.84% (67 runs sampled) | |
Checked test: ~~ x 12,077,987 ops/sec ±0.34% (67 runs sampled) |
OlderNewer