hacker_term
所属分类:系统/网络安全
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2016-07-30 20:53:26
上 传 者:
sh-1993
说明: 终端黑客新闻
(Hacker News on the Terminal)
文件列表:
.ruby-version (6, 2016-07-30)
.travis.yml (126, 2016-07-30)
Gemfile (96, 2016-07-30)
Gemfile.lock (992, 2016-07-30)
LICENSE.txt (1069, 2016-07-30)
Rakefile (79, 2016-07-30)
bin/ (0, 2016-07-30)
bin/hacker_term (156, 2016-07-30)
data/ (0, 2016-07-30)
data/comments.json (39701, 2016-07-30)
data/data.json (12525, 2016-07-30)
data/lorem.txt (613, 2016-07-30)
hacker_term.gemspec (1083, 2016-07-30)
lib/ (0, 2016-07-30)
lib/hacker_term.rb (2087, 2016-07-30)
lib/hacker_term/ (0, 2016-07-30)
lib/hacker_term/comments_data.rb (560, 2016-07-30)
lib/hacker_term/page_data.rb (3922, 2016-07-30)
lib/hacker_term/ui.rb (4202, 2016-07-30)
lib/hacker_term/version.rb (42, 2016-07-30)
spec/ (0, 2016-07-30)
spec/comments_data_spec.rb (1651, 2016-07-30)
spec/page_data_spec.rb (5224, 2016-07-30)
hacker_term
==========
Hacker News on the Terminal.
![Screenshot](http://flydillonfly.files.wordpress.com/2013/01/hacker_term_png1.png)
Requirements
------------
* Ruby 1.9.3
Installation
------------
* Install with `gem install hacker_term`
* Run using `hacker_term`
* Tests included; I run them using `rspec -fd` in the project directory
Overview
--------
See the front page of HN, use the arrow keys to browse and open particular items in the default system browser.
* Uses the Ruby `curses` library to create a terminal UI.
* Captures keyboard events to allow browsing of the HN front page from the terminal.
* Tested (and looks colourful) on OSX Mountain Lion, but some functionality may be lost on other flavours of Linux.
* Not tested and verified on anything other than the basic OSX terminal application - but may well work anyway.
* Uses the HN feed available at http://hndroidapi.appspot.com - without that resource this project would not exist.
* Sorting options included.
* Some stats included.
* Blog post here: http://flydillonfly.wordpress.com/2013/01/01/hacker-news-in-your-terminal/
Background
----------
This project was created to allow me to scratch a particular programming itch after reading about https://github.com/etsy/mctop. It brought me back to my days in college coding in C where everything was a terminal program!
Please enjoy/contribute/ignore as you see fit.
[![Build Status](https://travis-ci.org/ciaranarcher/hacker_term.png)](https://travis-ci.org/ciaranarcher/hacker_term)
近期下载者:
相关文件:
收藏者: