A Tampermonkey userscript that checks if books from your Goodreads reading lists are available in your local Libby library.
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 boto3 | |
| database_name = "databse" | |
| table_name = "prefix-dir_name" | |
| new_table_name = "more_awesome_name" | |
| client = boto3.client("glue") | |
| response = client.get_table(DatabaseName=database_name, Name=table_name) | |
| table_input = response["Table"] | |
| table_input["Name"] = new_table_name |
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
| ## Python 2.7 | |
| ## GlueLastRunDuration.py | |
| ## Version 1 | |
| ## by Lydon Carter October 2018 | |
| ## USE | |
| # Script to get a specific AWS Glue Job and tell you the duration of | |
| # the last run. | |
| # Notes: | |
| # -- The script will use the location you setup for your Glue Context in the "Needed stuff" |
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
| /* | |
| * find the biggest and smallest | |
| */ | |
| public int findRange(int[] intArray) { | |
| if(intArray.length == 0){ //check that the array is bigger than 0 | |
| return -1; | |
| } | |
| int largest = intArray[0]; | |
| int smallest = intArray[0]; | |
| for (int x=1;x<intArray.length;x++){ // find the smallest |