Skip to content

Instantly share code, notes, and snippets.

View seunboy1's full-sized avatar

Oluwaseun Adeyo seunboy1

View GitHub Profile
#!/bin/bash
# Version TF record saved on s3
dvc_track_files() {
git init
#initialise dvc in a git directory
dvc init
@seunboy1
seunboy1 / Setup opencv-c++ cmake
Last active September 11, 2020 11:41
This tutorial shows how to install opencv on vscode (Ubuntu) for c++
This was gotten from https://www.learnopencv.com/install-opencv-4-on-ubuntu-18-04/
# Create your working directory
mkdir project && cd project
#Visit to follow the article
Change CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion" \ to CMAKE_INSTALL_PREFIX=/usr/local \. and
OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \ to the right directory
@seunboy1
seunboy1 / Tensorflow installation
Last active June 25, 2022 01:05
How to install tensorflow c++ on ubuntu 18.04 with cmake
#This was taken from this repo https://github.com/FloopCZ/tensorflow_cc
#Download and install requirement
sudo apt-get install cmake curl g++-7 git python3-dev python3-numpy sudo wget
# Install Bazel
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
from selenium import webdriver
import os
import wget
#adapted from https://gist.github.com/genekogan/ebd77196e4bf0705db51f86431099e57
#input your search item here
searchterm = 'Tomato'
url = "https://www.google.co.in/search?q="+searchterm+"&source=lnms&tbm=isch"