{"id":20912447,"url":"https://github.com/fogleman/sync","last_synced_at":"2025-06-21T23:03:47.422Z","repository":{"id":6395838,"uuid":"7633811","full_name":"fogleman/Sync","owner":"fogleman","description":"Code inspired by the book.","archived":false,"fork":false,"pushed_at":"2014-03-11T19:35:43.000Z","size":344,"stargazers_count":31,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-13T08:43:32.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/fogleman.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":"2013-01-15T21:38:17.000Z","updated_at":"2020-06-08T01:43:05.000Z","dependencies_parsed_at":"2022-09-16T02:12:12.032Z","dependency_job_id":null,"html_url":"https://github.com/fogleman/Sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fogleman/Sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FSync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FSync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FSync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FSync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogleman","download_url":"https://codeload.github.com/fogleman/Sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogleman%2FSync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261206088,"owners_count":23124834,"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-18T14:27:23.630Z","updated_at":"2025-06-21T23:03:42.408Z","avatar_url":"https://github.com/fogleman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sync: Virtual, Synchronizing Fireflies\n\nA synchronization experiment inspired by the book \"Sync: How Order Emerges\nFrom Chaos In the Universe, Nature, and Daily Life\" by Steven H. Strogatz.\n\nEach cell flashes roughly once every few seconds. The cells\ninfluence each other in such a way that they all eventually synchronize,\nsimilar to synchronizing fireflies.\n\nThere is a 2-D implementation (wxPython) and a 3-D implementation (Pyglet).\n\nSeveral configuration parameters are available...\n\n* Grid Width, Height and Depth\n* Simulation Speed\n* Average Cell Period\n* Influence Factor\n* Cell Similarity Factor\n\nEach cell charges following a curve similar to a charging capacitor. When\nthe cell reaches a threshold, it fires causing a blink in the visualization.\nThe cell firing also kicks neighboring cells by a factor proportional to the\ninverse of their squared distance. The cells need not have identical \nindividual frequencies to reach sychronization. This can be tested by tweaking\nthe similarity factor, which causes the cells to vary in their charging times.\n\n## Videos\n\n* 2D: http://www.youtube.com/watch?v=1G6GHQ-EbJI\n* 3D: http://www.youtube.com/watch?v=KWwe4uMOmVY\n\n## Screenshot (2D)\n\n![Screenshot](https://raw.github.com/fogleman/Sync/master/screenshot-2d.png)\n\n## Screenshot (3D)\n\n![Screenshot](https://raw.github.com/fogleman/Sync/master/screenshot-3d.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogleman%2Fsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogleman%2Fsync/lists"}