{"id":24977791,"url":"https://github.com/adzz/bitmap_editor","last_synced_at":"2025-03-29T08:43:13.492Z","repository":{"id":55985202,"uuid":"89791763","full_name":"Adzz/bitmap_editor","owner":"Adzz","description":"A tech test: Produce a Ruby 2.3 program that simulates a basic interactive bitmap editor.","archived":false,"fork":false,"pushed_at":"2020-12-02T21:57:17.000Z","size":50,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T23:09:08.756Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/Adzz.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}},"created_at":"2017-04-29T14:46:38.000Z","updated_at":"2020-03-03T09:47:44.000Z","dependencies_parsed_at":"2022-08-15T10:50:32.762Z","dependency_job_id":null,"html_url":"https://github.com/Adzz/bitmap_editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fbitmap_editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fbitmap_editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fbitmap_editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fbitmap_editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adzz","download_url":"https://codeload.github.com/Adzz/bitmap_editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162105,"owners_count":20733352,"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","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":[],"created_at":"2025-02-03T23:09:16.752Z","updated_at":"2025-03-29T08:43:13.470Z","avatar_url":"https://github.com/Adzz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitmap editor\n\nTechnical Test Ruby developer\n\nProduce a Ruby 2.3 program that simulates a basic interactive bitmap editor. Bitmaps are represented as an M x N matrix of pixels with each element representing a colour.\n\nProgram input\n\nThe input consists of a file containing a sequence of commands, where a command is represented by a single capital letter at the beginning of the line. Parameters of the command are separated by white spaces and they follow the command character.\n\nPixel co-ordinates are a pair of integers: a column number between 1 and 250, and a row number between 1 and 250. Bitmaps starts at coordinates 1,1. Colours are specified by capital letters.\n\nCommands\n\nThere are 6 supported commands:\n\nI M N - Create a new M x N image with all pixels coloured white (O).\nC - Clears the table, setting all pixels to white (O).\nL X Y C - Colours the pixel (X,Y) with colour C.\nV X Y1 Y2 C - Draw a vertical segment of colour C in column X between rows Y1 and Y2 (inclusive).\nH X1 X2 Y C - Draw a horizontal segment of colour C in row Y between columns X1 and X2 (inclusive).\nS - Show the contents of the current image\nExample\n\nTo run the application you must supply a command file like so `bin/bitmap_editor examples/show.txt`\n\nInput File:\n```\nI 5 6\nL 1 3 A\nV 2 3 6 W\nH 3 5 2 Z\nS\n```\nExpected Output:\n```\nOOOOO\nOOZZZ\nAWOOO\nOWOOO\nOWOOO\nOWOOO\n```\n\nWhen implementing this program focus on quality and best practices. DO NOT RUSH! It's not a speed test. Make sure the program handles odd input gracefully.\n\nSubmission\n\nWe've created a very basic skeleton application you can use as a basis to start from. Feel free to adapt and refactor it as you see fit but please note that we will be running more complicated commands files against your application with the command `bin/bitmap_editor examples/show.txt`\n\nThe skeleton can be found [here](https://github.com/carwow/bitmap_editor)\n\nPlease submit a fully completed answer within the time allowed. Please provide source code and full GIT repository. Please commit often and with good commit messages. That will allow us to see how you've approached the problem. Don't worry about changing things around often\n\n# Running\n\n`\u003ebin/bitmap_editor examples/show.txt`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadzz%2Fbitmap_editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadzz%2Fbitmap_editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadzz%2Fbitmap_editor/lists"}