{"id":20256242,"url":"https://github.com/devcybiko/webdevclass","last_synced_at":"2025-06-20T11:06:53.510Z","repository":{"id":99128562,"uuid":"185912851","full_name":"devcybiko/WebDevClass","owner":"devcybiko","description":"Web Dev Class","archived":false,"fork":false,"pushed_at":"2019-07-09T23:34:02.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-16T15:09:52.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/devcybiko.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":"2019-05-10T03:30:38.000Z","updated_at":"2019-07-09T23:34:03.000Z","dependencies_parsed_at":"2023-06-04T01:15:30.422Z","dependency_job_id":null,"html_url":"https://github.com/devcybiko/WebDevClass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devcybiko/WebDevClass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2FWebDevClass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2FWebDevClass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2FWebDevClass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2FWebDevClass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devcybiko","download_url":"https://codeload.github.com/devcybiko/WebDevClass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcybiko%2FWebDevClass/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260933171,"owners_count":23084942,"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":"2024-11-14T10:45:59.332Z","updated_at":"2025-06-20T11:06:48.500Z","avatar_url":"https://github.com/devcybiko.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GREG'S WEB DEV SUPPORT FILES\n\n## Activities\nThese are Greg's answers to some of the Activities.\nNotice that there are some \"test\" functions in here. Later, we'll learn about various Test Harnesses that will check our code to make sure it works.\n\n### gregcalc\nGreg's solutions to the Calculator activity\nThere are three different methods of computing the calc result:\n1. If-Hydra\n2. Object dispatcher\n3. eval()\n\n### FixBuzz\nHere are three student's versions of FizzBuzz - a common interview challenge.\nPlus, a one-line FizzBuzz solution that will blow your mind!\n\n### RPSLX - Rock Paper Scissors Lizard Spock\n1. rps-solved.html - the if-hydra solution\n2. rps-greg.html - Greg's five-line solution to the if-hydra\n3. rpslx-solved.html - an extension to the if-hydra to add 'lizard' and 'spock'\n4. rpslx-greg.html - Greg's one-line change that allows you to play RPSLX\n\n### MissingCard\nGreg's solution to the missing card activity.\nThe algorithm is to convert the card to an 'ordinal' value.\n* diamonds = '0-12'\n* hearts = '13-25'\n* clubs='26-38'\n* spades='39-51'\n\nThen, for each suit, we add the card's ordinal (A=0..King=12).\nThis gives us a value from 0-51 which represents each card.\nPay particular attention to how we calculate the card's value in cardOrdinal() and then convert it back to a card in toCard().\n\nFinally, we sum all the ordinal values of all the cards in a deck (1326), and subtract the sum of all the cards with the missing card. The result is the ordinal value of the missing card - which we convert back to a card using toCard().\n\n## Examples\n* gregArrayMath.js - shows how to do array math using a one-dimensional array to hold values for a two-dimensional array.\n\n## ToolKit\n(ToolKit)[./ToolKit]\n1. greg.js - a collection of JavaScript functions that you may find useful\n2. gregTest.js - a simple test framework to verify the functions work\n3. To run the tests run `runtests.sh`\n\n### ToolKit Notes\n1. Needs node.js version 12+\n2. Warning message is normal: (node:14003) ExperimentalWarning: The ESM module loader is experimental.\n3. If all goes well a message will display: Ran without errors.\n4. If there are errors a message will display: Errors were found\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcybiko%2Fwebdevclass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcybiko%2Fwebdevclass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcybiko%2Fwebdevclass/lists"}