Project

dutchman

0.0
No commit activity in last 3 years
No release in over 3 years
Imagine you are writing a screencast and wanted to save yourself the embarassment of all those typos, the viewers the discomfort of watching you fumble, or all the hours you are going to spend mind-numblingly slicing and splicing the recording.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0
 Project Readme

Dutchman

(Flying) Dutchman is a tool is a wrapper for AppleScript with the purpose of providing an easier interface for inserting text into applications at various speeds as though they were typed by a person. SPOOOOKY!

Installation

Add this line to your application's Gemfile:

gem 'dutchman'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dutchman

Usage

Imagine you are writing a screencast and wanted to save yourself the embarassment of all those typos, the viewers the discomfort of watching you fumble, or all the hours you are going to spend mind-numblingly slicing and splicing the recording.

So we have a screencast we are recording and we want to have Dutchman type out a block of code within our favorite editor Sublime Text.

First, we would need to configure the editor to not help us with auto identation. By setting "auto_indent": false

require 'dutchman'

Dutchman.write(to: "Sublime Text",
  text: """
class Ball < Toy
  def bounce

  end
end
""")

The text is typed at the default typing speed "moderate". There are three available speeds.

| Speed | Words Per Minute (wpm) | Parameter | | slow | ~ 23 | :slow | | moderate (default) | ~ 35 | :moderate | | fast | ~ 50 | :fast |

Here we write our original slowly, to allow the viewers to savor the flavor of the code we are presenting. In the follow up code we choose to type it out fast because the viewer is obviously understood the original code we typed.

require 'dutchman'

Dutchman.write(to: "Sublime Text", speed: :slow, text: """
class Ball < Toy
  def bounce

  end
end
""")

# This content would appear after the Ball class.

Dutchman.write(to: "Sublime Text", speed: :fast, text: """
class Blocks < Toy
  def stack

  end
end
""")

The text is typed out in a uniform manner, to add a little variation to the speed, you can specify an additional parameter to humanize the typing.

require 'dutchman'

Dutchman.write(to: "Sublime Text", speed: :slow, humanize: true, text: """
class Ball < Toy
  def bounce

  end
end
""")

Contributing

  1. Fork it ( http://github.com/burtlo/dutchman/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request