<commit_before># Twitter Image Quote

A way to simply tweet out a quote (with an image) to your blog post, AND create
a URL to tweet out the same.

## example:

## Article URL
http://blog.texmexconsulting.com/how-much-money-can-you-really-make-as-a-freelancer/

### ScreenShot

![image-quote](assets/twitter-image-quote.png)

### Example URL
https://twitter.com/intent/tweet?text=Until+you+hear+%22Your+rates+are+too+high%22+on+a+frequent+basis%2C+your+rates+are+too+low+http://blog.texmexconsulting.com/how-much-money-can-you-really-make-as-a-freelancer/+http://pic.twitter.com/Dg4dRfLKfT


## How to Use

1. Clone locally
2. `cp .env.sample .env`
3. Edit the .env with values from Twitter Application (both the application's
   secrets and your oauth secrets). Recommended way to get these: the `t` gem
   authorize process. Follow the instructions, and find the values in ~/.trc
4. `ruby twitter-image-quote` and answer the questions

You'll need:

* The quote (100 characters)
* The article URL
* The image file path


### TODOs

* Maybe possibly create the quote image automagically?
* Better handle twitter authentication process. (deferring to `t` is cheap)

### Extras

Check out the RebuildUrl for ways to easily recreate the URL (click to tweet)

## Copyright

MIT, see LICENSE
<commit_msg>Ruby 2.1+<commit_after># Twitter Image Quote

A way to simply tweet out a quote (with an image) to your blog post, AND create
a URL to tweet out the same.

## example:

## Article URL
http://blog.texmexconsulting.com/how-much-money-can-you-really-make-as-a-freelancer/

### ScreenShot

![image-quote](assets/twitter-image-quote.png)

### Example URL
https://twitter.com/intent/tweet?text=Until+you+hear+%22Your+rates+are+too+high%22+on+a+frequent+basis%2C+your+rates+are+too+low+http://blog.texmexconsulting.com/how-much-money-can-you-really-make-as-a-freelancer/+http://pic.twitter.com/Dg4dRfLKfT


## How to Use

1. Clone locally
2. `cp .env.sample .env`
3. Edit the .env with values from Twitter Application (both the application's
   secrets and your oauth secrets). Recommended way to get these: the `t` gem
   authorize process. Follow the instructions, and find the values in ~/.trc
4. `ruby twitter-image-quote` and answer the questions

You'll need:

* The quote (100 characters)
* The article URL
* The image file path


### Ruby Versions

I use required keyword arguments, so this is ruby 2.1+

### TODOs

* Maybe possibly create the quote image automagically?
* Better handle twitter authentication process. (deferring to `t` is cheap)

### Extras

Check out the RebuildUrl for ways to easily recreate the URL (click to tweet)

## Copyright

MIT, see LICENSE

{'fraction_non_alphanumeric': 0.11531261699737926, 'fraction_numerical': 0.011231748408835642, 'mean_word_length': 4.397979797979798, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7400907', 'n_tokens_mistral': 932, 'n_tokens_neox': 874, 'n_words': 293}