https://github.com/athityakumar/timetable
A tool to display the timetable. A Terminal timetable, if you will.
https://github.com/athityakumar/timetable
Last synced: about 1 year ago
JSON representation
A tool to display the timetable. A Terminal timetable, if you will.
- Host: GitHub
- URL: https://github.com/athityakumar/timetable
- Owner: athityakumar
- License: mit
- Created: 2016-08-02T19:07:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T18:21:33.000Z (almost 10 years ago)
- Last Synced: 2025-04-22T11:19:10.994Z (about 1 year ago)
- Language: Ruby
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
DESCRIPTION
-----------
This is a simple script to lookup your timetable from the terminal. The `subjects []` in `timetable.rb` must be changed accordingly.
USING THE TOOL (STARTERS)
-------------------------
- [x] `git@github.com:athityakumar/timetable.git`
- [x] `cd timetable`
- [x] `ruby timetable.rb` or `ruby timetable.rb All` or `ruby timetable.rb Monday`
USING THE TOOL (ADVANCED)
-------------------------
- [x] Type the following commands on a terminal -
- [x] `git@github.com:athityakumar/timetable.git`
- [x] `cd timetable`
- [x] `ruby timetable.rb` or `ruby timetable.rb All` or `ruby timetable.rb Monday`
- [x] For `bin/` :
- [x] `cd ~/../../bin/`
- [x] `sudo vim Timetable`
- [x] Copy paste this into vim editor (`Ctrl + Shift + V`) and save it (`Esc + : + q`) -
cd ~/timetable;
if [ $# = 0 ];
then
ruby timetable.rb;
else
ruby timetable.rb $1;
fi
- [x] For `etc/bash_completion.d` :
- [x] `cd ~/../../etc/bash_completion.d`
- [x] `sudo vim Timetable`
- [x] Copy paste this into vim editor (`Ctrl + Shift + V`) and save it (`Esc + : + q`) -
_Timetable()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="Monday Tuesday Wednesday Thursday Friday All Yesterday Today Tomorrow"
COMPREPLY=( $(compgen -W "$opts" -- $cur) )
return 0
}
complete -F _Timetable Timetable
- [x] Now, open a new terminal and type `Timet` and press `Tab`. Auto-completes, eh? Even better, try pressing `Tab` after timetable to choose into a day easily.
CONTRIBUTION
------------
The work flow is the same as that of any other repository.
(1) Fork / clone the repository.
(2) Create a new branch , say `my-changes` and make your changes in this branch.
(3) Commit your changes and send a Pull request (PR) to this repository.
Active contributors would be rewarded with the tag of "Collabrators"
Bug fixes , Issues , Issue solutions , Optimizations & Enhancements are always welcome.
LICENSE
-------
The MIT License - [Athitya Kumar](http://github.com/athityakumar) - All Rights Reserved.