View gist:765ae3e3de8cc4870ba672db41db5c6c
This file contains 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
.build | |
.debug | |
"/debug" | |
/debug | |
/debug/encode | |
/debug/sim | |
=term.weight | |
1d164bc0e | |
3412008ec517e21ce706777252b91f9989787122 | |
6b4fdf4e2e4b083a5a5666392a6f656c5b4404d7 |
View gist:ccd3c9973c3505c0839a65054223473f
This file contains 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 clean_address(s): | |
s1 = re.sub(r'^[A-Z0-9]{4}-', '', s) # T-Mobile specific | |
s2 = re.sub(r'[^\s,a-zA-Z]', ' ', s1) # drop all numbers and non-comma punct | |
s3 = re.sub('Remote', '', s2) # drop "Remote" | |
s4 = re.sub(r'\s+', ' ', s3) # normalize whitespace | |
return s4.lstrip().rstrip() |
View clean.py
This file contains 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 clean_address(s): | |
s1 = re.sub(r'^[A-Z0-9]{4}-', '', s) # T-Mobile specific | |
s2 = re.sub(r'[^\s,a-zA-Z]', ' ', s1) # drop all numbers and non-comma punct | |
s3 = re.sub('Remote', '', s2) # drop "Remote" | |
s4 = re.sub(r'\s+', ' ', s3) # normalize whitespace | |
return s4.lstrip().rstrip() |
View clean.py
This file contains 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 clean_address(s): | |
s1 = re.sub(r'^[A-Z0-9]{4}-', '', s) # T-Mobile specific | |
s2 = re.sub(r'[^\s,a-zA-Z]', ' ', s1) # drop all numbers and non-comma punct | |
s3 = re.sub('Remote', '', s2) # drop "Remote" | |
s4 = re.sub(r'\s+', ' ', s3) # normalize whitespace | |
return s4.lstrip().rstrip() |
View gmaps.py
This file contains 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 clean_address(s): | |
s1 = re.sub(r'^[A-Z0-9]{4}-', '', s) # T-Mobile specific | |
s2 = re.sub(r'[^\s,a-zA-Z]', ' ', s1) # drop all numbers and non-comma punct | |
s3 = re.sub('Remote', '', s2) # drop "Remote" | |
s4 = re.sub(r'\s+', ' ', s3) # normalize whitespace | |
return s4.lstrip().rstrip() | |
def get_city_state_country(location): | |
API_KEY = "API_KEY" | |
url = f"https://maps.googleapis.com/maps/api/geocode/json?address={location}&key={API_KEY}" |
View session_filter.py
This file contains 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 collections import defaultdict | |
import json | |
with open('/Users/mrinal/Downloads/internal.json') as f: | |
data = json.load(f) | |
GREENLIST_KEYWORDS = (' every ', ' last ', ' all ', ' most common ') | |
queries = defaultdict(list) |
View enumerate_internal.py
This file contains 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
['what docs did i interact with you last week', | |
"How is this message for my engineering team?\n\nI'm sad to announce this is my last week at Glean. :heart: I will be moving to Maryland to live with my fiancée.\n\nI've already scheduled meetings with all of you this week to discuss knowledge transfer and any loose ends. :pray::skin-tone-4:", | |
'what did i do last week', | |
"how do I determine when a customer's last crawl ran?", | |
"i'm looking for a figma file with all our home page background images from unsplash. can you find it for me?", | |
'summarize the changes in the last week', | |
"What's a summary of our last call with Heidrick & Struggles? ", | |
"can i see all the recent queries I've made in Glean", | |
"I want to improve my recall metric. each metric has 5 subclasses. and i have data for all of it. help me choose the best metrics to work on by prioritizing those classes working on whom would improve my recall metric the highest. for now, i have two dimensions for each class, the number odf queries for which recal |
View enumerate-internal.py
This file contains 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
['what docs did i interact with you last week', | |
"How is this message for my engineering team?\n\nI'm sad to announce this is my last week at Glean. :heart: I will be moving to Maryland to live with my fiancée.\n\nI've already scheduled meetings with all of you this week to discuss knowledge transfer and any loose ends. :pray::skin-tone-4:", | |
"How is this message for my engineering team?\n\nI'm sad to announce this is my last week at Glean. :heart: I will be moving to Maryland to live with my fiancée.\n\nI've already scheduled meetings with all of you this week to discuss knowledge transfer and any loose ends. :pray::skin-tone-4:", | |
'what did i do last week', | |
"how do I determine when a customer's last crawl ran?", | |
"i'm looking for a figma file with all our home page background images from unsplash. can you find it for me?", | |
'summarize the changes in the last week', | |
"What's a summary of our last call with Heidrick & Struggles? ", | |
"can i see all the recent queries I've made in Glean", | |
"I want to improve m |
View enumerate-koch.py
This file contains 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
["I need a list of all CFO and Controller's for each Koch Company", | |
'what Lorea Zamora was focusing on as priorities in the last 3 months?', | |
'is there a slide that shows converging timelines all headed towards a north star', | |
'How do I increase the size of all the text in a plot shown in my Shiny app?', | |
'How does this sound: I am so thankful for all that you have done for the team, and as a team, we would love to support you in any way just as you have supported us. Praying for you and your family.', | |
'Does this sound better: I am so thankful for all that you do for others - myself included. As a team, we would love to support you in any way just as you have supported us. Praying for you and your family.', | |
'Your last update to add functionality to automatically select a selectInput field when only one non-blank option is available worked, but it removed the functionality that when I select an option for a selectInput field, that it automatically clears or updates the selectInput fields below it. Use your |
View enumerate-airbnb.py
This file contains 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
["It seems that 3 days is the maximum retention period for a jitney message in the bus. I'm wondering would that be enough for a consumer to handle/receive all the events that the publisher pushed assuming that its possible for the consumer to crash and there is some downtime before the consumer is back up", | |
'In UDS, if I have a nullable field and all the values in the field are non-null, is it possible to change it to non-nullable?', | |
'Can you re-write the below:\nHello Everyone, \n\nYou all might have received multiple invites for the Atrium Ambassador Tools Intro training from Isabelle Falco. Request everyone to attend at least one session to make yourself familiarized with the new tool. \n\nPlease reach out to your supervisors for any doubts.\n', | |
'forget all and give me summary of this video https://www.youtube.com/watch?v=CejrddAEUrM', | |
'In Terraform for AWS, how to create a route table with a default route sending all traffic to local?', | |
"Okay, here's another Jira ticket: https://jira.airbnb.biz/br |
OlderNewer