{"id":21041022,"url":"https://github.com/chfoo/compfacts","last_synced_at":"2025-10-01T04:31:03.435Z","repository":{"id":5614622,"uuid":"6822142","full_name":"chfoo/CompFacts","owner":"chfoo","description":"Computer Facts","archived":false,"fork":false,"pushed_at":"2014-05-13T00:51:41.000Z","size":580,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-23T04:57:42.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lcxfs1991/blog","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chfoo.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-23T03:57:01.000Z","updated_at":"2020-02-05T05:32:15.000Z","dependencies_parsed_at":"2022-09-22T03:42:07.649Z","dependency_job_id":null,"html_url":"https://github.com/chfoo/CompFacts","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2FCompFacts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2FCompFacts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2FCompFacts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2FCompFacts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chfoo","download_url":"https://codeload.github.com/chfoo/CompFacts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225364696,"owners_count":17462862,"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-19T13:50:01.951Z","updated_at":"2025-10-01T04:30:58.069Z","avatar_url":"https://github.com/chfoo.png","language":"Python","readme":"Computer facts generator\n========================\n\nCompFacts uses a context-free grammar to generate computer facts.\n\nThese facts are regularly posted to the Twitter account\n`@CompFacts \u003chttps://twitter.com/CompFacts\u003e`_.\n\nAn Atom feed is available at\n`\u003chttp://www.torwuf.com/compfacts/compfacts.atom\u003e`_.\n\n\nHow to help\n===========\n\nYou can help by submitting enhancements on my GitHub repository\n`\u003chttps://github.com/chfoo/CompFacts\u003e`_. Just fork, change, commit, and\nrequest me to pull your changes.\n\nThe Python version supported is 2.7.\n\n\nProgramming\n===========\n\nThe grammar productions requires the `Python Natual Languge Toolkit\n\u003chttp://nltk.org\u003e`_. It can be installed through the Python Package Index.\n\n\nCorpus and grammar format\n+++++++++++++++++++++++++\n\nThe files are located in directory ``corpus_data``.\n\nCorpus text files are simple lists. The first portion of the filename\nbefore the dot is the nonterminal name.\n\nGrammar text files are the production rules. The filename does not\nmatter. The grammar follows the NLTK format.\n\nAll files support using ``#`` at the start of a line as a comment.\n\n\nGenerating facts\n================\n\nYou can test out the generator by running::\n\n    python -m compfacts.grammar\n\n\nRunning the server\n==================\n\nI included a sample Debian package which I use for running the package as a service.\nA sample nginx config file is provided. The service\nwill refuse to run if the default ``compfacts.conf`` is not configured.\nSymlink ``debian`` to ``pkg.debian`` for Debian package building.\nThe commands ``debuild -b -us -uc`` and ``dh_clean`` will build and clean\nrespectively.\n\nThe service requires `Tweepy \u003chttps://github.com/tweepy/tweepy\u003e`_ for\nTwitter status updates and \n`Tornado Web \u003chttp://tornadoweb.org\u003e`_ for the RSS and service status pages.\nMake sure to install Tweepy using ``pip`` for latest version.\n\nThe Twitter posting service's status can be checked at\n`\u003chttp://www.torwuf.com/compfacts/server_status\u003e`_.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Fcompfacts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchfoo%2Fcompfacts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Fcompfacts/lists"}