{"id":23491751,"url":"https://github.com/halfbyte/calgen","last_synced_at":"2025-04-14T22:52:06.257Z","repository":{"id":66200947,"uuid":"48293190","full_name":"halfbyte/calgen","owner":"halfbyte","description":null,"archived":false,"fork":false,"pushed_at":"2016-05-11T10:47:53.000Z","size":203,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T22:51:56.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halfbyte.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":"2015-12-19T18:39:17.000Z","updated_at":"2018-01-27T10:41:44.000Z","dependencies_parsed_at":"2023-03-22T21:41:52.673Z","dependency_job_id":null,"html_url":"https://github.com/halfbyte/calgen","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/halfbyte%2Fcalgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fcalgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fcalgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfbyte%2Fcalgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halfbyte","download_url":"https://codeload.github.com/halfbyte/calgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975308,"owners_count":21192199,"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-12-25T01:29:32.771Z","updated_at":"2025-04-14T22:52:06.242Z","avatar_url":"https://github.com/halfbyte.png","language":"Ruby","readme":"# CalGen - A simple calendar generator\n\nGenerate a simple calendar in PDF form. I've created this in 2014, when I tried a few commercially\navailable Mac apps to do the same thing but failed to get the result I wanted.\n\nIt creates a layout suitable for A4 photo calendars (portrait) which works great for 11cm photos,\nbut it should be easily tweakable with a bit of ruby knowledge. All visual parameters as well as\nthe texts used to generate the weekdays and months, are hardcoded in the app. I know that sounds\nkinda stupid, but this is a quick hack, after all. I'm only making this available for people to\nlook and and use it as a starting point for their own experiments. It's probably also a good\ndemonstration of the beautiful simplicity of **prawn**, the gem I'm using to generate the PDF.\n\n## Usage\n\nPlease note that this currently doesn't come with a proper gem/binary version, so you'll have to\ndo most things manually:\n\n- Clone the repo\n- run bundle install to install the dependencies\n- run ruby calgen.rb to run the generator.\n\n### Options\n\n- use `-y` or `--year` to specify the year the calendar should be generated for. Leave it out and\nget a calendar for the current year.\n- use `-h` or `--holidays` to specify a file or a URL to get either a yaml file (see\n[free_days.yml](free_days.yml) for an example on how to format it) or an ics (iCal) file. calgen\nsimply takes all events or dates in the file and marks them as holidays (in the same way weekends\nare marked).\n- use `-o` or `--outfile` to specify a filename for the generated pdf. If omitted, it will write a\nfile named `calendar.pdf` in the current directory.\n\n## Credits\n\nThis currently contains one specific font file from the open source Bitstream Vera variant called\nDejaVu. Find out more at their [Website](http://dejavu-fonts.org/).\n\nI'm using the [prawn](https://github.com/prawnpdf/prawn) library for pdf generation.\n\nI'm also using the [iCalendar](https://github.com/icalendar/icalendar) gem for parsing iCal files for holiday lists\n\n## License\n\nSEE [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfbyte%2Fcalgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalfbyte%2Fcalgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfbyte%2Fcalgen/lists"}