Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Algorithms Sedgewick Wayne | 1,967 | 2 months ago | 3 | mit | Java | |||||
Solutions to all the exercises of the Algorithms book by Robert Sedgewick and Kevin Wayne | ||||||||||
Mir Algorithm | 168 | 10 | 29 | 9 days ago | 610 | February 07, 2023 | 27 | other | D | |
Dlang Core Library | ||||||||||
Floaxie | 28 | 5 months ago | apache-2.0 | C++ | ||||||
Floating point printing and parsing library based on Grisu2 and Krosh algorithms | ||||||||||
Strip Packing | 14 | 4 years ago | 1 | mit | Python | |||||
Algorithm for the strip packing problem with guillotine cuts constraint | ||||||||||
Prettyprint | 8 | 2 months ago | 2 | bsd-2-clause | Ruby | |||||
This class implements a pretty printing algorithm. | ||||||||||
Gopprint | 5 | 5 years ago | mit | Go | ||||||
Implementation of Kiselyov et al's pretty printing algorithm in Go. | ||||||||||
Algorithms | 4 | a year ago | 3 | mit | C++ | |||||
A collection of templates/algorithms for competitive coding. | ||||||||||
Packager | 3 | 7 years ago | JavaScript | |||||||
Binary tree bin packing algorithm for packing pictures to sheet for printing | ||||||||||
Diff Java | 2 | 7 years ago | gpl-3.0 | Java | ||||||
Clone and improvements | ||||||||||
Soren Cslab Scripts | 2 | 7 years ago | mit | Shell | ||||||
Scripts for fixing firefox locks, printing, timing algorithms, and checking your quota. |
This class implements a pretty printing algorithm. It finds line breaks and nice indentations for grouped structure.
By default, the class assumes that primitive elements are strings and each byte in the strings have single column in width. But it can be used for other situations by giving suitable arguments for some methods:
There are several candidate uses:
Add this line to your application's Gemfile:
gem 'prettyprint'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install prettyprint
After checking out the repo, run bin/setup
to install dependencies. Then, run rake test
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at ruby/prettyprint.