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
| def _populate_missing_weeks(session: Session, | |
| result_dict: List[Dict[str, str]], start_date: str, end_date: str) -> List[Dict[str, str]]: | |
| # result_dict_week_start_dates = list(map(lambda data: data['start'], result_dict)) | |
| result_dict_week_start_dates = set(data['start'] for data in result_dict) | |
| for week_start, week_end in _week_starts_between(session, start_date, end_date): | |
| if week_start not in result_dict_week_start_dates: | |
| result_dict.append({ | |
| 'messages_received_per_patient': Decimal(0), | |
| 'start': week_start, | |
| 'end': week_end |
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
| https://www.youtube.com/watch?v=58FpZrp48Oo | |
| [Music] welcome back to our in my podcast my name is Nima I'm an and today we're joined by dr. Cathy Leonard the pharmacy operations manager at Publix thank you for joining us thank you for having me so we see here that you actually greeted us very well so we want to thank you first for giving us these gifts really appreciate it so um presentation seems like it's very key at Publix is that something that you guys are about is that is that something that you guys instill absolutely I think it's part of just human nature you know you look for the best qualities and in people and how they present you both all of you have presented yourselves very well this morning but you look for that it makes that first impression on people and it's no different in our stores from how our pharmacists interact with patients how they interact with prescribers and how they interact with each other all goes a long way with our customers and the brand and what we're trying to build at Pub |
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
| # conftest.py | |
| import datetime | |
| from time import strptime | |
| from dateutil import parser | |
| from sqlalchemy import create_engine | |
| def is_test(): | |
| """ |
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 time | |
| from random import randint | |
| def demo(): | |
| foo = randint(0, 100) | |
| print(f"int is {foo}") | |
| return foo % 5 == 0 | |
| def _wait_for(condition_func, interval=0.5, max_time=15): |
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
| 1.Miracle Whip | |
| 2.Pickles | |
| 3.Cilantro | |
| 4.Black Jelly Beans | |
| 5.Pineapple Pizza | |
| 6.Sardines | |
| 6.Oysters | |
| 8.Sushi | |
| 9. Candy Corn | |
| 10. Vienna Sausages |
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
| // The following data should be run in the console while viewing the page https://read.amazon.com/ | |
| // It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
| var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024); | |
| getAmazonCsv = function() { | |
| // Set header for CSV export line - change this if you change the fields used | |
| var csvData = "ASIN,Title,Authors,PurchaseDate\n"; | |
| db.transaction(function(tx) { |
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
| note- we use auth0, some of this is specific to that | |
| steps: | |
| launch and look at the UI to make sure everthing is working | |
| npm update all gently (i.e "npm update" without hand-editing package.json) | |
| dependencies: (these will need the ^ later but for now leave it as is until it's proven to work) | |
| - "react-router": "4.4.0-beta.8", | |
| - react-router-redux -> "react-router-dom": "4.4.0-beta.8", | |
| - "redux-auth-wrapper": "^2.1.0", | |
| (note: add the ^ after changes are done so upgrades will kick in- there are more versions already!!) |
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 handleAuthenticated (dispatch) { | |
| lock.on('authenticated', ({ accessToken, idToken, state }) => { | |
| lock.getUserInfo(accessToken, (error, user) => { | |
| if (error) { | |
| return dispatch(lockError(error)) | |
| } | |
| setUser(user) | |
| setToken(idToken) |
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 {List, Map} from 'immutable' | |
| test('test name goes here', () => { | |
| const currentFlags = List([ | |
| Map({id: 7, tag: 'flag/bbb:JAR'}), | |
| Map({id: 6, tag: 'flag/bbb'}), | |
| Map({id: 9, tag: 'flag/ccc:ADV'}), | |
| Map({id: 8, tag: 'flag/bbb:ELI'}), | |
| Map({id: 10, tag: 'flag/ccc:JAR'}) | |
| ]) |
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
| # for use with sqlalchemy | |
| def test_foo(): | |
| stmts = [] | |
| def catch_queries(conn, cursor, statement, a, b, c): | |
| stmts.append(statement) | |
| event.listen(engine, "before_cursor_execute", catch_queries) | |
| do_thing() | |
| assert _most_frequent_queries(queries=stmts, query_count=4, query_type='SELECT', query_print_length=50) == [('SELECT X FROM Y', 5)] |