<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/ruby/tags/command</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 19:59:37 GMT</pubDate>
<item>
<title>(Ruby) execute command and get cmd results - ogrellk</title>
<link>http://snipplr.com/view/21677/execute-command-and-get-cmd-results/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 23 Oct 2009 03:39:45 GMT</pubDate>
<guid>http://snipplr.com/view/21677/execute-command-and-get-cmd-results/</guid>
</item>
<item>
<title>(Ruby) TextMate Ruby Snippet Posting - nighthawk</title>
<link>http://snipplr.com/view/9626/textmate-ruby-snippet-posting/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 11 Nov 2008 00:10:28 GMT</pubDate>
<guid>http://snipplr.com/view/9626/textmate-ruby-snippet-posting/</guid>
</item>
<item>
<title>(Ruby) TextMate Ruby Snippet Retrieval - nighthawk</title>
<link>http://snipplr.com/view/9625/textmate-ruby-snippet-retrieval/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 11 Nov 2008 00:10:07 GMT</pubDate>
<guid>http://snipplr.com/view/9625/textmate-ruby-snippet-retrieval/</guid>
</item>
<item>
<title>(Ruby) Rdoc - noah</title>
<link>http://snipplr.com/view/9534/rdoc/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 06 Nov 2008 11:54:26 GMT</pubDate>
<guid>http://snipplr.com/view/9534/rdoc/</guid>
</item>
<item>
<title>(Ruby) Post to Twitter from the shell - noah</title>
<link>http://snipplr.com/view/6594/post-to-twitter-from-the-shell/</link>
<description><![CDATA[ <p>**The Twitter shell script is now [hosted on GitHub](http://github.com/textarcana/post-to-twitter-from-the-shell-via-ruby).**  This (old) version is left in place for historical purposes.

Put this in a file called tweet.rb, then call as follows:
    ruby tweet.rb username "my tweet"

Or you can include your password in the command like so 
    ruby twit.rb username:password "my tweet"

(note that this is hugely insecure as your password will wind up in your .history, not to mention being visible to shouldersurfers).

Updated: if a post is over the 140-character limit, the script prints back the part of the tweet that would not fit.  This makes it easier to trim down overly long posts.</p> ]]></description>
<pubDate>Thu, 05 Jun 2008 09:23:47 GMT</pubDate>
<guid>http://snipplr.com/view/6594/post-to-twitter-from-the-shell/</guid>
</item>
<item>
<title>(Ruby) readline - markryall</title>
<link>http://snipplr.com/view/5604/readline/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 28 Mar 2008 22:29:31 GMT</pubDate>
<guid>http://snipplr.com/view/5604/readline/</guid>
</item>
<item>
<title>(Ruby) inflation calculator - jarjar2k7</title>
<link>http://snipplr.com/view/2813/inflation-calculator/</link>
<description><![CDATA[ <p>Just a quick command-line utility to check inflation values from US statistics office.</p> ]]></description>
<pubDate>Thu, 07 Jun 2007 12:54:46 GMT</pubDate>
<guid>http://snipplr.com/view/2813/inflation-calculator/</guid>
</item>
<item>
<title>(Ruby) Preview in IE command (Windows native version) - gtcaz</title>
<link>http://snipplr.com/view/2639/preview-in-ie-command-windows-native-version/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 May 2007 11:39:52 GMT</pubDate>
<guid>http://snipplr.com/view/2639/preview-in-ie-command-windows-native-version/</guid>
</item>
<item>
<title>(Ruby) Strip HTML Tags - gtcaz</title>
<link>http://snipplr.com/view/2097/strip-html-tags/</link>
<description><![CDATA[ <p>This replaces the PHP-based function in the HTML bundle.  You need to add two files to your bundle's Support/lib folder (create the directories if they're not present):

http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb?format=raw
http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb?format=raw</p> ]]></description>
<pubDate>Fri, 02 Feb 2007 15:28:37 GMT</pubDate>
<guid>http://snipplr.com/view/2097/strip-html-tags/</guid>
</item>
<item>
<title>(Ruby) Post snippet to Snipplr - gtcaz</title>
<link>http://snipplr.com/view/2044/post-snippet-to-snipplr/</link>
<description><![CDATA[ <p>Alternative bundle command for e (http://www.e-texteditor.com) or TextMate.

Replace YOUR_API_KEY_HERE with a valid API key -- you can find it on your Settings page (http://snipplr.com/settings/).

Changed the command to allow selection of language.  (Thanks, Tyler!)  Also it was unnecessary to escape entities when posting to Snipplr, so that caused problems.  Please let me know if you have any issues with or suggestions for this command.  If you're using TextMate, you'll need to alter the path to CocoaDialog, and you might as well use an environment variable for the API Key.

2/2/2007: Fixed a bug that prevented posting snippets with no tags.  Languages are now sorted alphabetically.</p> ]]></description>
<pubDate>Tue, 30 Jan 2007 20:26:49 GMT</pubDate>
<guid>http://snipplr.com/view/2044/post-snippet-to-snipplr/</guid>
</item>
<item>
<title>(Ruby) Get one of your snippets from Snipplr - gtcaz</title>
<link>http://snipplr.com/view/2039/get-one-of-your-snippets-from-snipplr/</link>
<description><![CDATA[ <p>This command allows you to browse your snippet collection on Snipplr and retrieve them into e.  Requires the installation of the wxCocoaDialog exe in the /Support/bin subdirectory.

Replace YOUR_API_KEY_HERE with the API key -- you can find it on your Settings page (http://snipplr.com/settings/).

Update 1/31/2007: I found escaping the $ was necessary to prevent the snippet engine from eating the variable.
Update 2/01/2007: Use the standard library function for escaping the snippet (instead of my own gsub() regex.
Update 2/02/2007: Add error checking code; handle empty accounts a bit more gracefully (and informatively).</p> ]]></description>
<pubDate>Tue, 30 Jan 2007 15:26:51 GMT</pubDate>
<guid>http://snipplr.com/view/2039/get-one-of-your-snippets-from-snipplr/</guid>
</item>
<item>
<title>(Ruby) Super Simple Speller v3 - gtcaz</title>
<link>http://snipplr.com/view/2037/super-simple-speller-v3/</link>
<description><![CDATA[ <p>Requires aspell and wxCocoaDialog.

Now checks all of your selection for misspellings.

Known issues: 
* e doesn't see contractions as a "word", so you must select things like can't, won't, etc. or the command won't see the whole word.

* Duplicate misspelled words are not handled well.  Replacements are done globally, yet you'll be asked for each occurrence.

Place in the Text bundle
I named the command: Spell check word/selection
Save: Nothing
Input: Selected Text or Word
Output: Replace Selected Text
Key Equivalent: Ctrl-;
Scope Selector: {Blank}</p> ]]></description>
<pubDate>Mon, 29 Jan 2007 22:27:02 GMT</pubDate>
<guid>http://snipplr.com/view/2037/super-simple-speller-v3/</guid>
</item>
</channel>
</rss>