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 os, json, shutil | |
| import keras | |
| from keras.callbacks import TensorBoard | |
| from keras.datasets import cifar10 | |
| from keras.preprocessing.image import ImageDataGenerator | |
| from keras.models import Sequential | |
| from keras.layers import Dense, Dropout, Activation, Flatten | |
| from keras.layers import Conv2D, MaxPooling2D |
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
| netsh wlan show profiles | |
| netsh wlan show profile name=profilename key=clear |
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
| #!/bin/sh | |
| # MacOS Mojave | |
| brew install qemu | |
| export QEMU=$(which qemu-system-arm) | |
| export TMP_DIR=~/tmp/qemu-rpi | |
| export RPI_KERNEL=${TMP_DIR}/kernel-qemu-4.14.79-stretch | |
| export RPI_FS=${TMP_DIR}/2018-11-13-raspbian-stretch-lite.img |
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
| #!/bin/bash | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
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
| git clone https://github.com/pytorch/pytorch.git | |
| git submodule update --init --recursive | |
| MACOSX_DEPLOYMENT_TARGET=10.14 CC=clang CXX=clang++ python setup.py install |
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
| // https://github.com/goldsborough/examples/blob/cpp/cpp/mnist/mnist.cpp | |
| #include <torch/torch.h> | |
| #include <cstddef> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| struct Net : torch::nn::Module { | |
| Net() |
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
| ## License: Apache 2.0. See LICENSE file in root directory. | |
| ## Copyright(c) 2017 Intel Corporation. All Rights Reserved. | |
| ##################################################### | |
| ## Align Depth to Color ## | |
| ##################################################### | |
| # First import the library | |
| import pyrealsense2 as rs | |
| import numpy as np |
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
| // License: Apache 2.0. See LICENSE file in root directory. | |
| // Copyright(c) 2017 Intel Corporation. All Rights Reserved. | |
| #include <librealsense2/rs.hpp> // Include RealSense Cross Platform API | |
| #include <opencv2/opencv.hpp> // Include OpenCV API | |
| #include "../cv-helpers.hpp" // Helper functions for conversions between RealSense and OpenCV | |
| #include <time.h> | |
| int main(int argc, char * argv[]) try | |
| { |
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
| ubuntu@ubuntu1604:~$ intel-realsense-dfu -b 001 -d 006 -f -i Signed_Image_UVC_5_10_6_0.bin | |
| D400 busnum = 1 | |
| D400 devnum = 6 | |
| D400 FW file path = Signed_Image_UVC_5_10_6_0.bin | |
| FW Version of .bin File = 5.10.6.0 | |
| FW version on device = 5.8.15.0 | |
| MM FW Version = 255.255.255.255 | |
| FW update required... | |
| Updating FW... | |
| DFU FW version in file = 5.10.6.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
| #ifndef THC_GENERIC_FILE | |
| #define THC_GENERIC_FILE "generic/SpatialUpSamplingBilinear.cu" | |
| #else | |
| #include "../linear_upsampling.h" | |
| //#define MAX_THREADS_PER_BLOCK 256 | |
| //#define MIN_BLOCKS_PER_MP 2 | |
| //__launch_bounds__(MAX_THREADS_PER_BLOCK, MIN_BLOCKS_PER_MP) |