{"id":17874363,"url":"https://github.com/modprog/language-guesser","last_synced_at":"2025-03-21T22:31:52.571Z","repository":{"id":45305555,"uuid":"403365056","full_name":"ModProg/language-guesser","owner":"ModProg","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-12T12:14:58.000Z","size":93,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T05:43:58.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ModProg.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":"2021-09-05T16:59:41.000Z","updated_at":"2023-02-12T12:18:43.000Z","dependencies_parsed_at":"2024-10-28T11:37:59.665Z","dependency_job_id":"329c0465-bafc-4032-9e77-bad09e6d9963","html_url":"https://github.com/ModProg/language-guesser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Flanguage-guesser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Flanguage-guesser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Flanguage-guesser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Flanguage-guesser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ModProg","download_url":"https://codeload.github.com/ModProg/language-guesser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880345,"owners_count":20525506,"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-10-28T11:08:40.860Z","updated_at":"2025-03-21T22:31:52.549Z","avatar_url":"https://github.com/ModProg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LanguageGuesser\n\n**Winner of the [Terminal Jam](https://web.archive.org/web/20220926232152/https://togglebit.io/posts/terminal-game-jam/) by [Togglebit](twitch.tv/togglebit).**\n\nThe goal is simple: **Guess the programming language shown**.\n\nYou are given 5 lives and loose one every time you cannot guess the language quickly enough.\n\nYou start every round with 12 points, this number decreases every 2 seconds. If you do not guess until it hits 0 you will loose a live.\n\nIf you guess wrongly you will loose a live.\n\nWith every point decrease more characers are displayed, so waiting may help you but reduces your score.\n\nMy Highscore was 34 (at 5am).\n\n## Token (Optional)\n\nThe code is from GitHub (all MIT licensed) due to API limitations it is recommended to set a `Personal access token`: \u003chttps://github.com/settings/tokens\u003e, you don't need to allow any scopes as this is only to lift the IP-Ratelimit.\n\nIf you have a PAT you can provide it via the environment variable `LANGUAGE_GUESSER_TOKEN`.\n\nDon't worry you can play without that, but bear in mind that you will only be able to play 60 \"files\" per hour as that is the GitHub rate limit.\n\n## \"Screenshots\"\n```text\n┌─────────────────────────────────────────────────────────────────────────┐\n│Press CTRL+C if you want to give up.                                     │\n│Press 1-4 to guess a language.                                           │\n│                                                                         │\n│Total Points: 0         Round Points: 1         Lives: 🫀🫀🫀🫀          │\n└─────────────────────────────────────────────────────────────────────────┘\n┌Languages─────────┐┌Code─────────────────────────────────────────────────┐\n│1   ruby          ││---@class cmp.Cache                                  │\n│2   c#            ││---@field public entries any                         │\n│3   lua           ││local cache = {}                                     │\n│4   css           ││                                                     │\n│                  ││cache.new = function()                               │\n│                  ││  local self = setmetatable({}, { __index = cache }) │\n│                  ││  self.entries = {}                                  │\n│                  ││  return self                                        │\n│                  ││end                                                  │\n│                  ││                                                     │\n│                  ││---Get cache value                                   │\n│                  ││---@param key string                                 │\n│                  ││---@return any|nil                                   │\n│                  ││cache.get = function(self, key)                      │\n│                  ││  key = self:key(key)                                │\n│                  ││  if self.entries[key] ~= nil then                   │\n│                  ││    return unpack(self.entries[key])                 │\n│                  ││  end                                                │\n│                  ││  return nil                                         │\n│                  ││end                                                  │\n└──────────────────┘└─────────────────────────────────────────────────────┘\n```\n```text\nYour total points 7!\n\nDetails:\n┌───────┬──────────┬──────────────────────────────────────────────────────┐\n│ Score │ Language │                       Reference                      │\n╞═══════╪══════════╪══════════════════════════════════════════════════════╡\n│ 7     │ css      │ https://github.com/getferdi/recipes/blob/cd082f103b8 │\n│       │          │ b401ca23dc89aaa3c15f6f077c889/recipes/google-transla │\n│       │          │ te/service.css                                       │\n├───────┼──────────┼──────────────────────────────────────────────────────┤\n│ ---   │ ruby     │ https://github.com/timdorr/tesla-api/blob/8a2accea08 │\n│       │          │ 3e0ba4554040197779b4454ba39085/Rakefile              │\n├───────┼──────────┼──────────────────────────────────────────────────────┤\n│ ---   │ c        │ https://github.com/gbdk-2020/gbdk-2020/blob/efba0aff │\n│       │          │ 9bf8fd61be1c76d364f9a3e65691154b/gbdk-support/lcc/lc │\n│       │          │ c.c                                                  │\n├───────┼──────────┼──────────────────────────────────────────────────────┤\n│ ---   │ shell    │ https://github.com/EnergizedProtection/block/blob/c5 │\n│       │          │ ef324ed8ef1e466276a6a8c837d7c5f0f2f39b/bluGo/build.s │\n│       │          │ h                                                    │\n└───────┴──────────┴──────────────────────────────────────────────────────┘\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodprog%2Flanguage-guesser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodprog%2Flanguage-guesser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodprog%2Flanguage-guesser/lists"}