el3030 / splitinerary Goto Github PK
View Code? Open in Web Editor NEWCollaborative itinerary library in Python
Home Page: https://splitinerary.readthedocs.io/en/latest/
License: MIT License
Collaborative itinerary library in Python
Home Page: https://splitinerary.readthedocs.io/en/latest/
License: MIT License
Since Plane/Train/Boat/Car inherits from Transportation and Transportation inherits from events, we want to be able to save the transportation details (e.g. FLIGHT NK 172) as the name but also allow for non-transportation events (e.g. Dinner @ Bleecker St. Pizza) to have their own name.
Either add a field for the travel time for each event (except for transportation events, obviously) or allow a transportation to be assigned to each event to account for travel time.
next_event() currently uses linear search to find the next event in the trip. There should be a way to binary search for the next event, reducing time complexity.
Describe the solution you'd like
Add a function to pretty print or at least return a well-structured dict of the entire Trip, including every event for every person. The amount of information to be included in the pretty print is up to you!
Design and implement a User object that can easily be associated with events
Describe the solution you'd like
Create a function in Trips.py that adds up and returns the cost of each event belonging to a specific user in the trip.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.