
Demo
Listof
Why ?
As a developer I found myself wasting a lot of time to get a list of the US states
- Google: list of the US states
- Jump to wikipedia or some other webpage
- Copy paste(usually is a table) to my editor (sublime)
- Remove unwanted info
- Finally the text format
- Save it in a file and IO read
- Convert them to JSON, xml etc.. on the go
Solution
irb> Listof.find('us_states')
Current Situation
Currently it is packed in a gem listof.
Future plan to pack with pip, npm or other package managers
- Interface: http://listof.herokuapp.com/
- Repo: https://github.com/kevincobain2000/listof
Installation
Add this line to your application's Gemfile:
gem 'listof', :git => 'https://github.com/kevincobain2000/listof', :branch => 'master'
And then execute:
$ bundle
Or install it yourself as:
$ gem install listof
Usage
require 'listof'
puts Listof.find("countries")
puts Listof.find("countries").to_json
puts Listof.find("occupations").to_yaml
puts Listof.find("top_movies").to_yaml
puts Listof.all().to_yaml
List of
- Alphabets
listof.find('alphabets') - Baby Names Male
listof.find('baby_names_male') - Countries
listof.find('countries') - Countries Asia
listof.find('countries_asia') - Dog Names Female
listof.find('dog_names_female') - Dog Names Male
listof.find('dog_names_male') - European Countries
listof.find('european_countries') - Fruits
listof.find('fruits') - Girl Names 2014
listof.find('girl_names_2014') - Hobbies
listof.find('hobbies') - Indian Companies
listof.find('indian_companies') - Jobs
listof.find('jobs') - Kanji Three Strokes
listof.find('kanji_three_strokes') - Last Names
listof.find('last_names') - Movies Imdb Top 250
listof.find('movies_imdb_top_250') - Non Words
listof.find('non_words') - Occupations
listof.find('occupations') - Phobias
listof.find('phobias') - Questions
listof.find('questions') - Religions
listof.find('religions') - Sports
listof.find('sports') - Top Movies
listof.find('top_movies') - Us States
listof.find('us_states') - Vegetables
listof.find('vegetables') - Weapons
listof.find('weapons') - Xbox Games
listof.find('xbox_games') - Youtubers
listof.find('youtubers') - Zombie Movies
listof.find('zombie_movies')
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Add Your file with the list in data/sushi_fishes.txt
- Commit your changes (
git commit -am 'Add your list') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request to master