https://github.com/kyleburton/typrtail
Hey! It looks like you're typing but your fingers aren't moving!
https://github.com/kyleburton/typrtail
Last synced: 9 months ago
JSON representation
Hey! It looks like you're typing but your fingers aren't moving!
- Host: GitHub
- URL: https://github.com/kyleburton/typrtail
- Owner: kyleburton
- Created: 2010-07-28T01:17:25.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-08-04T03:08:26.000Z (over 15 years ago)
- Last Synced: 2025-04-13T04:07:02.953Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 97.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. typrtail
Tail or cat a file: make it look like someone is typing them.
For some processes I was monitoring, this was far more entertaining than just watching a @tail -f@.
user@host ~$ tail -f /var/log/messages | typrtail
user@host ~$ wget -q -O - http://www.gutenberg.org/files/730/730.txt | head -n 20 | typrtail
h1. Installation
user@host ~$ gem install typrtail
h1. Configuration
@typrtail@ looks for @$HOME/.typrtailrc@ and if it exists, loads it. This file
is plain ruby, you can override any of the parameters any way you like...have
it your way.
# override some defaults, be faster with more errors!
$speed_adjust = 0.35 # was 1.0
$typo_prob = 35
$min_typo_prob = 15
# stop more abruptly when we hit a typo
$time_to_recognize_typo = 0.4 # was 0.3
h1. FAQ
h2. What good is this?
Come on, it's just for fun.
h2. Why'd you do this?
I was overworked and needed an escape.
h2. Doesn't this already exist?
Yeah, I'm sure it does, they're probably better too, I needed a break.
h2. It's too slow, can you make it faster?
Yes, you can. It's a plain Ruby program, open it up and take a look at the top, there are a lot of constants (yes, globals - *gasp* globals! I know, how awful!) that control things like the typing speed. Have at 'em!