<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 12:34:27 +0000</lastBuildDate>
    <item>
      <title>(Other) Calculate % from pixels (snippet pipe) - charlesroper</title>
      <link>https://snipplr.com/view/8617/calculate--from-pixels-snippet-pipe</link>
      <description>&lt;p&gt;A snippet pipe that will calculate % based on a given pixel value and base unit. &#13;
&#13;
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):&#13;
&#13;
    10px / 16px = 0.625em * 100 = 62.5%&#13;
&#13;
This snippet allows you to specify the desired pixel size and the base font size and will return the calculated % value.&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 07:41:11 UTC</pubDate>
      <guid>https://snipplr.com/view/8617/calculate--from-pixels-snippet-pipe</guid>
    </item>
    <item>
      <title>(Other) Calculate em from pixels (snippet pipe) - charlesroper</title>
      <link>https://snipplr.com/view/8616/calculate-em-from-pixels-snippet-pipe</link>
      <description>&lt;p&gt;*This snippet was originally inspired by [sotetbarna](http://e-texteditor.com/forum/viewtopic.php?p=11786#11786)*&#13;
&#13;
A snippet pipe that will calculate ems based on a given pixel value and base unit. &#13;
&#13;
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):&#13;
&#13;
    10px / 16px = 0.625em&#13;
&#13;
This snippet allows you to specify the desired pixel size and the base font size and will return the calculated em value.&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 07:37:05 UTC</pubDate>
      <guid>https://snipplr.com/view/8616/calculate-em-from-pixels-snippet-pipe</guid>
    </item>
    <item>
      <title>(Ruby) Charles Roper's custom .irbrc for Windows - charlesroper</title>
      <link>https://snipplr.com/view/7379/charles-ropers-custom-irbrc-for-windows</link>
      <description>&lt;p&gt;1. Make sure the following environment variable is set:&#13;
&#13;
  WinXP:&#13;
  HOME=C:\Documents and Settings\*username*&#13;
&#13;
  Vista:&#13;
  HOME=C:\Users\*username*&#13;
&#13;
2. Create an .irbrc file in %HOME%:&#13;
  &#13;
  $ cd %HOME%&#13;
  $ touch .irbrc&#13;
&#13;
If you don't have touch installed, use a good text editor to save the .irbrc. E Text Editor is good, as is Notepad++.&#13;
&#13;
3. Install the following gems:&#13;
&#13;
fastri&#13;
[http://eigenclass.org/hiki.rb?cmd=view&amp;p=fastri&amp;key=fastri]&#13;
&#13;
map_by_method and what_methods&#13;
[http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/]&#13;
&#13;
wirble&#13;
[http://pablotron.org/software/wirble/]&#13;
&#13;
win32console&#13;
http://rubyforge.org/projects/winconsole/&lt;/p&gt;</description>
      <pubDate>Fri, 18 Jul 2008 11:59:50 UTC</pubDate>
      <guid>https://snipplr.com/view/7379/charles-ropers-custom-irbrc-for-windows</guid>
    </item>
    <item>
      <title>(Ruby) Refresh Stylesheets for E Text Editor - charlesroper</title>
      <link>https://snipplr.com/view/3508/refresh-stylesheets-for-e-text-editor</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Sun, 12 Aug 2007 09:25:18 UTC</pubDate>
      <guid>https://snipplr.com/view/3508/refresh-stylesheets-for-e-text-editor</guid>
    </item>
    <item>
      <title>(Ruby) Image dragcommand with dimensions - charlesroper</title>
      <link>https://snipplr.com/view/2356/image-dragcommand-with-dimensions</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 19 Mar 2007 13:33:25 UTC</pubDate>
      <guid>https://snipplr.com/view/2356/image-dragcommand-with-dimensions</guid>
    </item>
    <item>
      <title>(Ruby) Auto-complete with menu - charlesroper</title>
      <link>https://snipplr.com/view/2354/autocomplete-with-menu</link>
      <description>&lt;p&gt;Auto-complete command for E-TextEditor. Will popup a menu if there are multiple possibilities.&#13;
&#13;
Installation requirements:&#13;
Save: Nothing&#13;
Input: Entire Document&#13;
Output: Insert as Text&lt;/p&gt;</description>
      <pubDate>Sun, 18 Mar 2007 18:30:06 UTC</pubDate>
      <guid>https://snipplr.com/view/2354/autocomplete-with-menu</guid>
    </item>
  </channel>
</rss>
