{"id":24592139,"url":"https://github.com/girkovarpa/zipf","last_synced_at":"2026-05-18T01:37:45.144Z","repository":{"id":108438252,"uuid":"286844105","full_name":"GirkovArpa/zipf","owner":"GirkovArpa","description":"TypeScript implementation of the Vsauce paperclip experiment.","archived":false,"fork":false,"pushed_at":"2020-08-11T20:43:32.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T02:47:08.632Z","etag":null,"topics":["deno","experiment","typescript","zipf","zipfs-law"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GirkovArpa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-11T20:43:17.000Z","updated_at":"2020-08-11T20:44:15.000Z","dependencies_parsed_at":"2023-03-13T14:25:40.434Z","dependency_job_id":null,"html_url":"https://github.com/GirkovArpa/zipf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GirkovArpa/zipf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GirkovArpa%2Fzipf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GirkovArpa%2Fzipf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GirkovArpa%2Fzipf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GirkovArpa%2Fzipf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GirkovArpa","download_url":"https://codeload.github.com/GirkovArpa/zipf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GirkovArpa%2Fzipf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","experiment","typescript","zipf","zipfs-law"],"created_at":"2025-01-24T10:13:45.023Z","updated_at":"2026-05-18T01:37:45.133Z","avatar_url":"https://github.com/GirkovArpa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zipf\n\nLink random pairs of paperclips in a pool then observe the distribution of chain lengths.  \n\nDoes it follow **Zipf's Law?**\n\nInspired by [this](https://www.youtube.com/watch?v=fCn8zs912OE) **Vsauce** video.\n\n# Usage\nSince this is a TypeScript project, you can run it immediately without manual compilation using **Deno**:\n```\n$ deno run zipf.ts\n```\n```javascript\nconst pool: number[][] = linkRandPairs(10, 5); \nconst result: number[] = pool.map(toLength).sort(numerically);\nconsole.log({ result });\n// { result: [ 1, 1, 1, 2, 5 ] }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgirkovarpa%2Fzipf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgirkovarpa%2Fzipf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgirkovarpa%2Fzipf/lists"}