Code Snippets I'm Proud to Have Written
- utilities to handle tree creation and interaction within MUI's Tree component
- Like useLocalStorage but can be used for session storage -- useful for form state when navigating in wizard and can be used to notify user when navigating away from the page if they're data will persist or not
- fetches data from an endpoint (in this case it was a massive dataset)
- The data could only be of a certain type -- this uses a python generator function, based on the returned date and types, to conserve memory (since we don't know the size of the dataset) and casts the final result to a list to be consumed by the client
- relies on a call to a json schema I set up at a previous company to accomplish type validation across services
- creates the necessary data and in the neccesary shape to post to one of our services
- particularly proud of the types (I cannot share those) but the class, when invoked, will infer the meta template, an incredibly neccesary process when uploading datasets in our use case
- a custom date_time mock data generator based on faker.py
- users can select this type of generator from the client
- it would then talk to our many different services and eventually land here
- it would take in the column data and rewrite it to be whatever type the user had specified, and overwrite the csv file (not shown)
- a custom hook to fetch github commits from different services
- does a diff check to see if all services are on the same commit, if they are return the main services commit sha
- otherwise return the services and their respective shas