{"id":23590987,"url":"https://github.com/liam-ohara/christmas-tree","last_synced_at":"2025-09-09T11:19:12.392Z","repository":{"id":269888757,"uuid":"900347517","full_name":"liam-ohara/christmas-tree","owner":"liam-ohara","description":"Prints an ASCII representation of a Christmas tree to the terminal","archived":false,"fork":false,"pushed_at":"2024-12-26T23:02:20.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T13:41:54.814Z","etag":null,"topics":["ascii-art","chrismas-tree","cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liam-ohara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-08T14:51:09.000Z","updated_at":"2024-12-26T23:03:31.000Z","dependencies_parsed_at":"2024-12-27T00:16:46.700Z","dependency_job_id":"94dd8989-3866-4209-9abb-edd9eed735ef","html_url":"https://github.com/liam-ohara/christmas-tree","commit_stats":null,"previous_names":["liam-ohara/christmas-tree"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liam-ohara/christmas-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liam-ohara%2Fchristmas-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liam-ohara%2Fchristmas-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liam-ohara%2Fchristmas-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liam-ohara%2Fchristmas-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liam-ohara","download_url":"https://codeload.github.com/liam-ohara/christmas-tree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liam-ohara%2Fchristmas-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274290364,"owners_count":25258148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii-art","chrismas-tree","cpp"],"created_at":"2024-12-27T07:17:46.143Z","updated_at":"2025-09-09T11:19:12.332Z","avatar_url":"https://github.com/liam-ohara.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Christmas tree\nThis application was written as a solution to a personal challenge to write a simple, self-contained application written in C++.\n\nThis application will accept a positive number between 5 and 80 input by the user, and return an ASCII representation of a Christmas tree with a seasonal greeting. \n\n## Installation\n### Prerequisites \n* Linux (up-to-date kernel)\n* x86_64 processor\n* Access to the command line interface / terminal\n\n### Installation\n1. Download `christmas-tree` from the `/bin/` directory.\n2. Move the downloaded file to another local directory on your device of your choosing.\n3. Open your command line interface / terminal and navigate to the local location of `christmas-tree`.\n4. Run the application with the following command:\n\u003e ./christmas-tree\n\n## Usage\nOnce you have run the application with the command above, you will be shown the following text:\n\n\u003ePlease enter the size of your tree (between 5 and 80):\n\nEnter a postive number between 5 and 80 and hit ENTER. A Christmas tree will be generated whose bottom row will be represented by a number of asterisks equal to the number entered, if an odd number, or rounded up to the next odd number, if an even number was entered. For example, if 30 is input by the user, the bottom row of the tree will have 31 one asterisks.\n\n### Examples\n#### Correct input\n\u003ePlease enter the size of your tree (between 5 and 80): 30\n\u003e\u003cbr /\u003e\u003cbr \u003e\n![Christmas tree](/screenshots/christmas-tree-30.png \"Christmas tree\")\n\u003e\u003cbr /\u003e\u003cbr /\u003e\n\u003eMerry Christmas and a Happy 2025!\n\nThe program will terminal after printing the tree and message to the terminal.\n\n#### Incorrect input\n\u003ePlease enter the size of your tree (between 3 and 80): -80\n\u003e\u003cbr /\u003e\u003cbr /\u003e\n\u003eInvalid tree size. Tree size must be between 3 and 80.\n\u003e\u003cbr /\u003e\n\u003ePlease enter the size of your tree (between 3 and 80):\n\nAfter entering an invalid input, the user will be prompted to try again until a valid input is provided.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliam-ohara%2Fchristmas-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliam-ohara%2Fchristmas-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliam-ohara%2Fchristmas-tree/lists"}