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
| # Resources | |
| # https://www.pyimagesearch.com/2015/09/07/blur-detection-with-opencv/ | |
| # https://stackoverflow.com/questions/52505906/find-if-image-is-bright-or-dark | |
| # https://towardsdatascience.com/automatic-image-quality-assessment-in-python-391a6be52c11 | |
| # https://towardsdatascience.com/deep-image-quality-assessment-with-tensorflow-2-0-69ed8c32f195 | |
| """ | |
| This CLI takes in a path, brightness and sharpness thresholds and then | |
| recursively searches images in the provided folder, evaluates the file | |
| and either keeps the ones of acceptable quality or moves them to the trashbin |
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 sqlite3 | |
| import sys | |
| def main(): | |
| if len(sys.argv) < 2: | |
| print("I") | |
| return |
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 BOOKS = [ | |
| '1', | |
| 'The Stranger\nThe Outsider', | |
| 'Albert Camus', | |
| '1942', | |
| 'French', | |
| '2', | |
| 'In Search of Lost Time\nRemembrance of Things Past', | |
| 'Marcel Proust', | |
| '1913–27', |
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
| function myReplace(str, before, after) { | |
| let index = str.indexOf(before); | |
| if (str[index] === str[index].toUpperCase()) { | |
| after = `${after[0].toUpperCase()}${after.slice(1)}`; | |
| } | |
| return str.replace(before, after) | |
| } |
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
| /* | |
| You Don't Know JS: Up & Going | |
| Chapter 1: Into Programming - PRACTICE | |
| https://github.com/getify/You-Dont-Know-JS/blob/master/up%20%26%20going/ch1.md | |
| */ | |
| let accountBalance = 303.91; | |
| let totalPriceOfPurchase = 0; | |
| const TAX_RATE = 0.08; |
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
| {"lastUpload":"2018-09-23T15:48:08.286Z","extensionVersion":"v3.1.2"} |
NewerOlder