{"id":19364316,"url":"https://github.com/orc/deck2bolt","last_synced_at":"2025-09-11T21:40:03.959Z","repository":{"id":137107910,"uuid":"64273625","full_name":"Orc/deck2bolt","owner":"Orc","description":"A script (written in C, though I need to write a javascript version so I can make a web applet) to tell me how far a rack deck needs to be above the brake bolt to clear a given wheel + tire size.","archived":false,"fork":false,"pushed_at":"2020-06-16T00:37:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-06T20:51:24.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Orc.png","metadata":{"files":{"readme":"README","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":"2016-07-27T03:20:32.000Z","updated_at":"2016-07-27T03:21:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"78fcfde9-1dd2-42c8-8c54-af8da2299c9c","html_url":"https://github.com/Orc/deck2bolt","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/Orc%2Fdeck2bolt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orc%2Fdeck2bolt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orc%2Fdeck2bolt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Orc%2Fdeck2bolt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Orc","download_url":"https://codeload.github.com/Orc/deck2bolt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240483764,"owners_count":19808635,"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-10T07:37:02.520Z","updated_at":"2025-02-24T13:13:20.175Z","avatar_url":"https://github.com/Orc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"This little program calculates how far above the fork crown brake\nbolt a rack deck needs to be set to not foul the front wheel.\n\nusage: deck2bolt HTA(degrees) A-C(mm) RAKE(mm) MIN-CLEARANCE(mm)\n\n(min-clearance is the vertical distance from the axle to the top\nof the wheel + however much room you might want for fender clearance.\nIt is probably ridiculous to have it be larger than a-c, but you\nmight want to flare the front end of a fender up for some sort of\naesthetic reason.)\n\n\nBasically, it rotates the min-clearance back to match HTA, then\ntells you min-clearance * ( 1 - cos(hta) ) (min-clearance is rotated\nback to make the hypoteneuse of a right triangle, then I subtract\nthe back wall of that triangle {cos(hta)} from original min-clearance\nand what's left is how much above the crown bolt hole the deck needs\nto be to clear the wheel.\n\nThis simple calculation is made slightly more complicated by fork\nrake -- a raked fork has an effective hta that's larger than the\nactual hta. That's a simple equation as well;  asin(rake/a-c).\n\nSo what this program does is returns\n\n    m-c * ( 1 - cos(hta + asin(rake/a-c)) )\n\nwith some stupid sanity checking where it refuses to calculate if\neither a-c or m-c is less than 100mm.   It does NOT sanity check\nfor m-c \u003e a-c, so you can go to town with wheels that are much\nlarger than the fork will accept.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forc%2Fdeck2bolt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forc%2Fdeck2bolt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forc%2Fdeck2bolt/lists"}