Skip to content

seamusabshere/charlar.rb

Repository files navigation

charlar.rb

Installation

  1. mkdir ~/code
  2. git clone https://github.com/seamusabshere/charlar.rb.git ~/code/charlar.rb
  3. cd ~/code/charlar.rb
  4. bundle

If you don't have bundle, then run gem install bundler.

Usage

Run send.rb in one terminal:

~/code/charlar.rb (master) $ ruby send.rb Image
the quick brown fox jumped over the lazy dog
WROTE inbox/1393939955.965494.png

Run receive.rb in another terminal:

~/code/charlarb (master) $ ruby receive.rb 
==================================================
READ inbox/1393939955.965494.png
--------------------------------------------------
the quick brown fox jumped over the lazy dog

As soon as a message is read, it will go to the trash/ folder.

Formats

The two options for send.rb are Image and Text.

Text

It just writes the text into a file.

Image

It uses the ASCII character code (97 for 'a', etc.) in the Red channel of a PNG.

For example, "the quick brown fox jumped over the lazy dog" looks like:

the quick brown fox jumped over the lazy dog

Copyright

Copyright 2014 Bettina Miguez and Seamus Abshere

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages