Amy Luo
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Thursday 11b [toc] ## WEEK_1 **"How many hours of zoom calls happen everyday (on average)?** ### GROUP_1 AERO - GROUP AERO DA BEST <3 - 10 milly ### GROUP_2 BLINKER 15 million ### GROUP_3 CACTUS - 300 million ## U R OUTLIERED ### GROUP_4 DORITO - 53.1415926535897932384626433832795 million :) ### GROUP_5 ECHO - 30 million- calls per day - average of 2-3 hours per call - 60-90 million hours ### our clas answer - 34.5 Millions hrs in my bank acc ## WEEK_2 First Name must be at least 3 characters, and no more than 30. Last Name must be at least 3 characters, and no more than 50. First Name can only contain letters (uppercase or lowercase), and dashes. Last Name can only contain letters (uppercase or lowercase), spaces, and dashes. Middle Name can be None, but if it's not none, it can be between 1 and 50 characters. Middle Name cannot be longer than the first name, and it cannot be longer than the last name. ### GROUP_1 AERO GROUP AERO DA BEST <3 copyright © group aero 2021 | Input | output | | -| - | | len(firstname) < 3 characters | false | | len(firstname) > 30 | false | | len(lastname) < 3 | false | | len(lastname) > 50 | false | | firstname.isalpha() | true | | firstname.contains("-") | true | | lastname.isalpha() | true | | lastname.contains("-") and lastname.contains(" ") | true | | len(middle_name) > 50 | false | | len(middle_name) > len(firstname) | false | | len(middle_name) > len(lastname) | false | ### GROUP_2 BLINKER |Input | Output | |---|---| |len(firstname) < 3| False| |len(firstname) > 30|False| |len(lastname) < 3 |False| |len(lastname) > 50|False| |len(middlename) > 50 |False| |len(middlename) > len(firstname) |False| |len(middlename)>len(lastname) | False| |lastname.isalpha()|True| |firstname.isalpha()|True| ### GROUP_3 CACTUS | Input | Output | | -------- | -------- | | len(firstname) < 3 | false | | len(lastname) < 3 | false | | len(firstname) > 30 | false | | len(lastname) > 50 | false | | len(middlename) > 50 | false | | len(middlename) > len(firstname) | false | | len(middlename) > len(lastname) | false | | firstname.isalpha() or | -------- | ### GROUP_4 DORITO | Input | Output | |--|--| | len(firstname) < 3| False | | len(lastname) < 3 | False | | len(firstname) > 30 | False | | len(lastname) > 50 | False | | len(middlename) > 50 | False | | len(middlename) > len(firstname) | False | | len(middlename) > len(lastname) | False | | firstname.isalpha() | True | | lastname.isalpha() | True | ### GROUP_5 ECHO | Input | Output | |-------|--------| |len(firstname) < 3|False| |len(firstname) > 30|False| |len(firstname) >= 3 and len(firstname) <= 30|True| |len(lastname) < 3|FALSE| |len(lastname) > 50| FALSE| |len(lastname) >= 3 and len(lastname) <= 50|TRUE |len(middlename) > 30|False| |len(middlename) < 1|False| |len(middlename) > ## WEEK_3 Each group in the tutorial should share a summary of their teams plans and progress in relation to: * When (or if) they are running standups and whether they are synchronous or asynchronous * How often they meet, how they meet, and what the goals/outcomes of any meetings so far have been * Have they or will they try pair programming * Any challenges they've faced already after being in a group for a week Other group members (in other teams) are encouraged to ask questions and learn from what other groups are doing/saying. ### GROUP_1 AERO - Group AERO the best - Meeting 3-4 times a week! - Standups occuring for approx 20 mintues occuring synchronously - We have done pair programming - No challenges because we are the best and do nothing wrong - but we've done quadruple programming lol ### GROUP_2 BLINKER - Three times a week through zoom/teams, we chat everyday if we have issues to be clarified - The process is synchronous - We are doing pair programming also tri-programming - Challenges - we haven't decided our data structure T^T - importing stuff from diff directory - what assumptions to make - sometimes theres conflict on git ### GROUP_3 CACTUS - Frequent meet ups of around 3 times a week on discord (2-3 hrs) - Have done group programing together for more difficult functions - Challenges, our codes dont work and alot of confusion ### GROUP_4 DORITO - Having frequent meetings (2/3 times per week)- average length of 1 hour - Goals of the meetings are progress monitoring and assigning of new roles - Have tried pair programming - Challenging to organise a meeting for everyone to attend - Daily messaging ### GROUP_5 ECHO - Frequent meetings (2-3) times per week through Teams - Talking daily (on messenger) about any issues - Constant peer review of eachother's code - No standup so far: will try later - haven't tried pair programming - Goal: understanding what the tasks are about - challenges: confusion with the tasks - not sure what the output should look like (for testing) ## WEEK_4 ```python def check_password(password): if password == "password" or password == "iloveyou" or password == "123456": return "Horrible password" elif (len(password) >= 12 and any(x.isupper() for x in password) and any(x.isdigit() for x in password) and any(x.islower() for x in password)): return "Strong password" elif len(password) >= 8 and any(x.isdigit() for x in password): return "Moderate password" else: return "Poor password" if __name__ == '__main__': print(check_password("ihearttrimesters")) # What does this do? ``` ```python def check_password(password): ''' Takes in a password, and returns a string based on the strength of that password. The returned value should be: * "Strong password", if at least 12 characters, contains at least one number, at least one uppercase letter, at least one lowercase letter. * "Moderate password", if at least 8 characters, contains at least one number. * "Poor password", for anything else * "Horrible password", if the user enters "password", "iloveyou", or "123456" ''' horrible_pw = ["password", "iloveyou", "123456"] digit = False upper = False if password in horrible_pw: return "Horrible Password" elif len(password) >= 8: for char in password: if char.isdigit(): digit = True elif char.isupper(): upper = True if digit and upper and len(password) >= 12: return "Strong Password" elif digit: return "Moderate Password" return "Poor Password" if __name__ == '__main__': print(check_password("ihearttrimesters")) # What does this do? ``` Compare these two pieces of code from a pythonic, style, and readability point of view and choose which one you prefer. When you choose one, you must justify your reasoning in the shared document your tutor gives you. ### GROUP_1 AERO The second code contains a docstring which explains clearly what the function does while there are more lines in the second code, the if functions are clearer with well defined variables second code is more readable ### GROUP_2 BLINKER The second code includes a docstring which clearly describe what the function does with different scenarios The if statements in the first code example are messy and hard to understand The first code does not have a docstring describing what the function does The second code has a much clearer variable names The second code has less code and is more organised e.g putting horrible passwords in a list ### GROUP_3 CACTUS First code has very long lines compared to the second one making it hard to understand what each line means. Second has docstrings. Second is more readable compared to first. ### GROUP_4 DORITO - Second one has nice docstrings, the first one has none. - Large conditional statements, if this and this and this, elif this and this and this, its not very nice. - isupper and islower can work on strings too. Should check password.islower() == False (not all of the password is lowercase therefore at least one character is uppercase. works with numbers in the string too) - First code uses varibale name "x" which isn't great ### GROUP_5 ECHO - Second one is shorter - First one does not have docstrings - the if .. in .. makes it clearer what we are checking for - horrible password was in a list (consice) - the second version can be shorter if it uses the any function ### Together Q. What are attributes of good requirements? - Clear and concise statement for what you want to accomplish - Understandable, proper grammar - Achievable, singular + focus 1 story. - Testable Q. How could we clean this up into well described requirements? "I want a burger with lots of pickles and mayo but I need to make sure that the mayo doesn't make the burger bun really wet. Oh, and it needs to be warm, like, made less than 5 minutes ago warm but not so hot that I burn myself. I'm also not a big fan of plastic containers so if it could be in a paper bag that would be good. Actually, make that a brown paper bag, I like the colour of that" Requirements - User should be given a medium size burger. - Burger should have 5 pickles - Burger should have 2 table spoons of mayo - Burger should not be wet - Burger should delivered within 5 mins of making - Burger should delivered warm - Burger should be delivered in a brown paper bag ## WEEK_8 ### GROUP_2 BLINKER - url/message(dm)/send/photo * Inputs: token, channel_id/dm_id, url of the photo * Methods: POST - url/message(dm)/reaction * Inputs: token, channel_id, message_id, * Methods: POST - url/message/disappearing/meassages * Inputs: token, channel_id, time for disappearing * METHODs: - url/messages/poll * Inputs: token, channle_id, title, options - url/user/setnickname - url/user/profile_picture/upload - url/screen/share - url/screen/remote/control ### GROUP_3 CACTUS - url/user/mute/ - Takes in a valid token and u_id of a user. Mutes the user for given time. Adds user to a new list in data(called muted_list) until time is up. - Inputs: token, u_id, time - POST - returns - url/user/addprofilepic/ - Inputs: Token, jpeg - Adds picture to user. can be viewed with user/profile/ - POST - returns: {} ### GROUP_4 DORITO - usr/block - token, user_id - channel/mute turns off notifications - token, channel_id - usr/profile/about_me - token, description - usr/profile/other_socials - token, platform () - games integration: farmville, community snake, chess - bots for announcements, music, - ### GROUP_5 ECHO - message/send/photo, message/sentdm/photo - send photo to the channel/dm - Inputs: token, channel_id/dm_id, photo_url - POST - returns {message_id} #### DONT TOUCH ## WEEK_TEMPLATE ### GROUP_1 AERO ### GROUP_2 BLINKER ### GROUP_3 CACTUS ### GROUP_4 DORITO ### GROUP_5 ECHO

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully