Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josephcc/organic_hash
Hash a string into readable names extracted from sci-fi novels and movies using a part-of-speech tagger.
https://github.com/josephcc/organic_hash
Last synced: 3 months ago
JSON representation
Hash a string into readable names extracted from sci-fi novels and movies using a part-of-speech tagger.
- Host: GitHub
- URL: https://github.com/josephcc/organic_hash
- Owner: josephcc
- License: apache-2.0
- Created: 2014-01-31T00:31:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-02T22:22:00.000Z (almost 11 years ago)
- Last Synced: 2024-07-27T19:44:35.884Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 9.28 MB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Organic Hash
============Converts strings to awesome scifi objects!!
Organic Hash hashes strings (user ID, hashes) to a human-readable, scifi-themed
representation.## Demo
http://truly-civilized-pancakes.herokuapp.com
## Install
```bash
$ gem install organic_hash
```## Usage
Basic usage
```ruby
> require 'organic_hash'
> oh = OrganicHash.new
> oh.hash 'ID_A3AHG7FKPIV07'
=> "technically-huge-witch"
> oh.hash 'asldkjasldkjasdlkajsd'
=> "so-confident-turret"
> oh.hash 'josephcc'
=> "truthfully-better-explosion"
> oh.hash 'josephcc', true
=> ["truthfully", "better", "explosion"]
```Different length
```ruby
> oh = OrganicHash.new(4)
> oh.hash 'Zero'
=> "morally-unexpected-private-commander"
```Random hashes
```ruby
> oh = OrganicHash.new
> oh.rand
=> "most-cool-coffee"
> oh.rand
=> "currently-upcoming-signals"
> oh.rand true
=> ["simultaneously", "automatic", "action"]
```Class methods for quick access
```ruby
> OrganicHash.hash 'asdlkj'
=> "quite-unacceptable-genius"
> OrganicHash.rand
=> "emotionally-restricted-bombs"
```## Authors
Joseph Chee Chang and Zero Cho
## License
Apache License, Version 2.0
## URL
https://github.com/josephcc/organic_hash
http://rubygems.org/gems/organic_hash