- This snippit of code pulls down all verified email users directly from Cognito.
- It will get their email and first name
- Note: The context and quality of this code is for one time use.
- Bing Maps compresses their polygon information.
- Their example decompression algorithm is unfortunately only available in C# (go figure): https://docs.microsoft.com/en-us/bingmaps/spatial-data-services/geodata-api#decompression-algorithm
- This is the working python equivalent.
- To use it, you send only the compressed data and not the number of polygons with comma.
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 generate_pyspark_structs(client): | |
property_resource = client.get_resource("Property") | |
property_class = property_resource.get_class("Property") | |
meta = property_class.table | |
fields = [] | |
for col in meta: | |
# cols.append(dict(col)) | |
name = col["SystemName"] | |
data_type = col["DataType"] |
- Date: Monday, November 25, 2019
- Speakers: Irina Geiman, Dana Iskoldski, Erica Pisani, and Kapil Khimdas
- Link: https://www.meetup.com/DevTOEvents/events/266277310/
- set expectations
- understand knowledge level of audience
- get feedback from sample of audience group ahead of time
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
function getGoogleAddress(placeId) { | |
var API_KEY = ''; | |
var baseUrl = 'https://maps.googleapis.com/maps/api/geocode/json'; | |
var queryUrl = baseUrl + '?key=' + API_KEY + '&place_id=' + placeId; | |
Logger.log(queryUrl); | |
var response = UrlFetchApp.fetch(queryUrl); | |
var json = response.getContentText(); | |
var result = JSON.parse(json).results[0]; | |
var placeId = result.formatted_address; |
- There are a lot different things you can try to keep pull requests manageable.
- These pointers are not meant to be rules, but merely guidelines when possible. Due to the nature of what you are working on, some of these techniques may not be possible (or incredibly difficult).
- Either way, here are some tips to help make people not want to claw their eyes out reviewing a pull request.
- These are the fundamental basics to a pull request and ALL pull requests should have these, regardless of how small or meaningless it is.
The purpose of this document is to outline the following
- Why asynchronous tests can pass even though it is not testing anything
- How to actually test asynchronous code
- In one word: javascript
- Javascript is an asynchronous, non-blocking language.