<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - charlesroper</title>
<link>http://snipplr.com/users/charlesroper</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 15:51:20 GMT</pubDate>
<item>
<title>(Other) Calculate % from pixels (snippet pipe)</title>
<link>http://snipplr.com/view/8617/calculate--from-pixels-snippet-pipe/</link>
<description><![CDATA[ <p>A snippet pipe that will calculate % based on a given pixel value and base unit. 

E.g. If you want a 10px font-size expressed as a percentage, you would need to perform the following calculation (note 16px is the default base font size in all browsers):

    10px / 16px = 0.625em * 100 = 62.5%

This snippet allows you to specify the desired pixel size and the base font size and will return the calculated % value.</p> ]]></description>
<pubDate>Fri, 26 Sep 2008 07:41:11 GMT</pubDate>
<guid>http://snipplr.com/view/8617/calculate--from-pixels-snippet-pipe/</guid>
</item>
<item>
<title>(Other) Calculate em from pixels (snippet pipe)</title>
<link>http://snipplr.com/view/8616/calculate-em-from-pixels-snippet-pipe/</link>
<description><![CDATA[ <p>*This snippet was originally inspired by [sotetbarna](http://e-texteditor.com/forum/viewtopic.php?p=11786#11786)*

A snippet pipe that will calculate ems based on a given pixel value and base unit. 

E.g. If you want a 10px font-size expressed in ems, you would need to perform the following calculation (note 16px is the default base font size in all browsers):

    10px / 16px = 0.625em

This snippet allows you to specify the desired pixel size and the base font size and will return the calculated em value.</p> ]]></description>
<pubDate>Fri, 26 Sep 2008 07:37:05 GMT</pubDate>
<guid>http://snipplr.com/view/8616/calculate-em-from-pixels-snippet-pipe/</guid>
</item>
<item>
<title>(Ruby) Charles Roper's custom .irbrc for Windows</title>
<link>http://snipplr.com/view/7379/charles-ropers-custom-irbrc-for-windows/</link>
<description><![CDATA[ <p>1. Make sure the following environment variable is set:

  WinXP:
  HOME=C:\Documents and Settings\*username*

  Vista:
  HOME=C:\Users\*username*

2. Create an .irbrc file in %HOME%:
  
  $ cd %HOME%
  $ touch .irbrc

If you don't have touch installed, use a good text editor to save the .irbrc. E Text Editor is good, as is Notepad++.

3. Install the following gems:

fastri
[http://eigenclass.org/hiki.rb?cmd=view&amp;p=fastri&amp;key=fastri]

map_by_method and what_methods
[http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/]

wirble
[http://pablotron.org/software/wirble/]

win32console
http://rubyforge.org/projects/winconsole/</p> ]]></description>
<pubDate>Fri, 18 Jul 2008 11:59:50 GMT</pubDate>
<guid>http://snipplr.com/view/7379/charles-ropers-custom-irbrc-for-windows/</guid>
</item>
<item>
<title>(Ruby) Refresh Stylesheets for E Text Editor</title>
<link>http://snipplr.com/view/3508/refresh-stylesheets-for-e-text-editor/</link>
<description><![CDATA[ <p>The escape_javascript funtion is taken from Rails (http://rails.rubyonrails.com/classes/ActionView/Helpers/JavaScriptHelper.html#M000633). Most of the work on this was done by pnomolos and n00ge on the E Text Editor forums.</p> ]]></description>
<pubDate>Sun, 12 Aug 2007 09:25:18 GMT</pubDate>
<guid>http://snipplr.com/view/3508/refresh-stylesheets-for-e-text-editor/</guid>
</item>
<item>
<title>(Ruby) Image dragcommand with dimensions</title>
<link>http://snipplr.com/view/2356/image-dragcommand-with-dimensions/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 Mar 2007 13:33:25 GMT</pubDate>
<guid>http://snipplr.com/view/2356/image-dragcommand-with-dimensions/</guid>
</item>
<item>
<title>(Ruby) Auto-complete with menu</title>
<link>http://snipplr.com/view/2354/autocomplete-with-menu/</link>
<description><![CDATA[ <p>Auto-complete command for E-TextEditor. Will popup a menu if there are multiple possibilities.

Installation requirements:
Save: Nothing
Input: Entire Document
Output: Insert as Text</p> ]]></description>
<pubDate>Sun, 18 Mar 2007 18:30:06 GMT</pubDate>
<guid>http://snipplr.com/view/2354/autocomplete-with-menu/</guid>
</item>
<item>
<title>(XML) Insert Image</title>
<link>http://snipplr.com/view/2342/insert-image/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 16 Mar 2007 04:48:47 GMT</pubDate>
<guid>http://snipplr.com/view/2342/insert-image/</guid>
</item>
</channel>
</rss>