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 script will setup USB rules to open the ZED cameras without root access | |
| # This can also be useful to access the cameras from a docker container without root (this script needs to be run on the host) | |
| # NB: Running the ZED SDK installer will already setup those | |
| # Print the commands | |
| set -x | |
| # Download the lightest installer | |
| wget -q https://download.stereolabs.com/zedsdk/3.5/jp44/jetsons -O zed_installer.run | |
| # Extracting only the file we're interested in | |
| bash ./zed_installer.run --tar -x './99-slabs.rules' > /dev/null 2>&1 |
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
| // A simple quickref for Eigen. Add anything that's missing. | |
| // Main author: Keir Mierle | |
| #include <Eigen/Dense> | |
| Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d. | |
| Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols. | |
| Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd. | |
| Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major. | |
| Matrix3f P, Q, R; // 3x3 float matrix. |
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
| import pybullet as p | |
| import time | |
| usePhysX = True | |
| if usePhysX: | |
| p.connect(p.PhysX) | |
| p.loadPlugin("eglRendererPlugin") | |
| else: | |
| p.connect(p.GUI) |
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
| # will need to be tweaked for your project | |
| make_minimum_required(VERSION 3.5) | |
| project(test_ros_pb11) | |
| # Default to C99 | |
| if(NOT CMAKE_C_STANDARD) | |
| set(CMAKE_C_STANDARD 99) | |
| endif() | |
| # Default to C++14 |
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 bash | |
| # Create isolated ROS Workspace | |
| cd ~ | |
| mkdir ros_py35 | |
| cd ros_py35 | |
| # Unset sourced workspace | |
| # Go to ~/.bashrc and comment out lines from previous installation of ROS (Lunar) |
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
| import torch | |
| class PixelwiseContrastiveLoss(torch.nn.Module): | |
| def __init__(self): | |
| super(PixelwiseContrastiveLoss, self).__init__() | |
| self.num_non_matches_per_match = 150 | |
| def forward(self, image_a_pred, image_b_pred, matches_a, matches_b, non_matches_a, non_matches_b): | |
| loss = 0 |
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
| <!DOCTYPE html> | |
| <html> | |
| <head><title>SOUND</title></head> | |
| <body> | |
| <div>Frequence: <span id="frequency"></span></div> | |
| <script type="text/javascript"> | |
| var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
| var oscillatorNode = audioCtx.createOscillator(); | |
| var gainNode = audioCtx.createGain(); |
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 python2 | |
| # a simple script for one of my articles - https://cryptolok.blogspot.com/2017/08/practical-wifi-hosts-triangulation-with.html | |
| from math import log10 | |
| MHz=raw_input('MHz FREQUENCY (2417, 5200, ...) : ') | |
| MHz=int(MHz) | |
| dBm=raw_input('dBm TRANSMITTER POWER (23, 63, ...) : ') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder