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 numpy as np | |
import tensorflow as tf | |
import cv2 as cv | |
from pathlib import Path | |
from send2trash import send2trash | |
from google_images_download import google_images_download | |
def downloadImages(keyword): |
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
from pathlib import Path | |
from send2trash import send2trash | |
from google_images_download import google_images_download | |
def downloadImages(keyword): | |
response = google_images_download.googleimagesdownload() | |
arguments = { "keywords":keyword, "limit":50, "format":'jpg', "size":"medium", "print_urls": False, | |
"image_directory":'./'+keyword.lower()+'/'} | |
response.download(arguments) | |
#also download png format images |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
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
# count number of bits set in binary representation doesn't work on negative numbers | |
print("Enter a positive integer in decimal form:") | |
num = int(input()) | |
cnt = 0 | |
while num != 0: | |
cnt += num&1 | |
num = num>>1 | |
print(num) |