Jetpack 3.2 includes Cuda 9 and CuDNN 7 so it is necessary to compile it from source.
sudo apt-get install openjdk-8-jdk
| # run with a custom --n | |
| # python run_luigi.py SquaredNumbers --local-scheduler --n 20 | |
| import luigi | |
| class PrintNumbers(luigi.Task): | |
| n = luigi.IntParameter(default=10) | |
| def requires(self): | |
| return [] |
| // cat cling_opencv_example.cpp | cling | |
| .L /usr/lib/libopencv_highgui.so | |
| #include <opencv/highgui.h> | |
| #include <math.h> | |
| #include <iostream> | |
| using namespace std; | |
| template <typename T> T deg2rad(T deg) { return deg*M_PI/180.0; } |
| # -------------------------------------------------------- | |
| # Camera sample code for Tegra X2/X1 | |
| # | |
| # This program could capture and display video from | |
| # IP CAM, USB webcam, or the Tegra onboard camera. | |
| # Refer to the following blog post for how to set up | |
| # and run the code: | |
| # https://jkjung-avt.github.io/tx2-camera-with-python/ | |
| # | |
| # Written by JK Jung <[email protected]> |
| /* | |
| Example code for displaying gstreamer video from the CSI port of the Nvidia Jetson in OpenCV. | |
| Created by Peter Moran on 7/29/17. | |
| https://gist.github.com/peter-moran/742998d893cd013edf6d0c86cc86ff7f | |
| */ | |
| #include <opencv2/opencv.hpp> | |
| std::string get_tegra_pipeline(int width, int height, int fps) { | |
| return "nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)" + std::to_string(width) + ", height=(int)" + |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}'
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
These licenses will be valid after sublime_text patching:
- BEGIN License -
Love
Unlimited user license
EA7E-8441
918381ACA844A0379CCAC729059720A4
BC9D409098618744BB45FF23E67568DB
82B926D92157127DB3B4054834D0477F
| ## Sublime Text 3 Serial key build is 3103 | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
| B085E65E 2F5F5360 8489D422 FB8FC1AA |
| #import os | |
| import socket | |
| import platform | |
| print('-------------------------------------------------------------') | |
| print('Interpreter') | |
| print('platform.python_version: ', platform.python_version()) | |
| print('platform.python_compiler: ', platform.python_compiler()) | |
| print('platform.python_build: ', platform.python_build()) | |
| print() | |
| print('Platform') |