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
| document.getElementsByTagName('button')[0].onclick = function () { | |
| scrollTo(document.body, 0, 1250); | |
| } | |
| function scrollTo(element, to, duration) { | |
| var start = element.scrollTop, | |
| change = to - start, | |
| currentTime = 0, | |
| increment = 20; | |
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
| # -*- coding: utf-8 -*- | |
| import argparse | |
| import cv2 | |
| import numpy as np | |
| def calc_disparity(left_image, right_image): | |
| window_size = 3 |
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
| const { join } = require('path'); | |
| const { readdirSync, renameSync } = require('fs'); | |
| const [dir, search, replace] = process.argv.slice(2); | |
| const match = RegExp(search, 'g'); | |
| const files = readdirSync(dir); | |
| files | |
| .filter(file => file.match(match)) | |
| .forEach(file => { | |
| const filePath = join(dir, file); |