Takes the Lojong slogans and formats them in various ways
mental-health
Stephen Starkey ad50097dbb Simplified a description so it would fit on the PDF 3 months ago
resources Simplified a description so it would fit on the PDF 3 months ago
src Removed toy language experiments 4 months ago
.gitignore Added JSON export. 4 months ago
LICENSE First commit 5 months ago
README.md Added support for working with the fortune file 4 months ago
build Removed toy language experiments 4 months ago
install-fortune Better text output 4 months ago
lojong Removed toy language experiments 4 months ago
project.clj Better text output 4 months ago
publish Removed toy language experiments 4 months ago

README.md

lojong

Various transformations on the list of Atisha’s lojong slogans.

Taken, with some modifications, from http://www.unfetteredmind.org/mindtraining/

Downloads

These files are generated by this project:

Using the fortune file

If you’ve installed fortune, there will likely be a database of possible fortunes and their indexes somewhere on disk. You can learn more about how to work with it at https://linux.die.net/man/6/fortune

Check out install-fortune for an example approach for installing the generated fortune file into your OS.

Preparing your development environment

Install Leiningen: https://leiningen.org/

If you want to compile the LaTeX contents, you’ll need an installation of LaTeX for your operating system. It should include the pdflatex command.

Program Usage

Produce a single lojong slogan: ./lojong

Or build a bunch of artifacts, including JSON, fortune, and PDF files, using ./build

They will show up in target/documents.

Development

The lojong script relies on the presence of an uberjar. It tries to build one if it doesn’t exist. Successive executions use that jar file. If you want to change code and see how things are different, you’ll need to lein clean

License

Copyright © 2019 Stephen Starkey

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.