sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean && sudo apt-get install build-essential haveged -y
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install curl -y
sudo apt-get install shadowsocks-libev -y
sudo apt-get install cron -y
sudo apt-get install screen -y
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
#include <iostream> | |
#include <opencv2/highgui.hpp> | |
#include <deque> | |
using namespace cv; | |
using namespace std; | |
// | |
// e.g. to smooth noisy landmarks ;) | |
// |
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
#include "opencv2/opencv.hpp" | |
using namespace cv; | |
int main(int argc, char** argv) | |
{ | |
VideoCapture cap; | |
// open the default camera, use something different from 0 otherwise; | |
// Check VideoCapture documentation. | |
if(!cap.open(0)) | |
return 0; |
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
# use polipo to connect to ss server locally, and support polipo listen under 8123. | |
git config --global http.proxy http://127.0.0.1:8123 | |
HTTP_PROXY=http://127.0.0.1:8123 go get X | |
git config --global --unset http.proxy | |
# Encap this to override the issue because fucking GFW block google sites... |
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
-- Prints to the screen (Can end with semicolon) | |
print("Hello World") | |
--[[ | |
Multiline comment | |
]] | |
-- Variable names can't start with a number, but can contain letters, numbers | |
-- and underscores | |
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
-- The module name and filename are the same | |
local convert = {} | |
function convert.ftToCm(feet) | |
return feet * 30.48 | |
end | |
return convert |
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
import cv2 | |
from train import train | |
from keras.models import load_model | |
t = train() | |
img_left = cv2.imread("../data/1.bmp") | |
img_right = cv2.imread("../test_data/0.jpg") | |
model = t.get_siamese_model() |