<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - inreflection7</title>
<link>http://snipplr.com/users/inreflection7</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 01:48:36 GMT</pubDate>
<item>
<title>(Bash) Find and replace</title>
<link>http://snipplr.com/view/69381/find-and-replace/</link>
<description><![CDATA[ <p>Find and replace</p> ]]></description>
<pubDate>Tue, 08 Jan 2013 03:34:52 GMT</pubDate>
<guid>http://snipplr.com/view/69381/find-and-replace/</guid>
</item>
<item>
<title>(JavaScript) Safe replace {{some_var}} in JS strings</title>
<link>http://snipplr.com/view/68700/safe-replace-somevar-in-js-strings/</link>
<description><![CDATA[ <p>For those moments of weakness when .replace() looks like a good idea...</p> ]]></description>
<pubDate>Thu, 22 Nov 2012 15:12:03 GMT</pubDate>
<guid>http://snipplr.com/view/68700/safe-replace-somevar-in-js-strings/</guid>
</item>
<item>
<title>(JavaScript) BASH inline for loop</title>
<link>http://snipplr.com/view/68018/bash-inline-for-loop/</link>
<description><![CDATA[ <p>Simple but something I forgot :-/</p> ]]></description>
<pubDate>Tue, 30 Oct 2012 07:34:53 GMT</pubDate>
<guid>http://snipplr.com/view/68018/bash-inline-for-loop/</guid>
</item>
<item>
<title>(Bash) BASH inline for loop</title>
<link>http://snipplr.com/view/68017/bash-inline-for-loop/</link>
<description><![CDATA[ <p>Simple but something I forgot :-/</p> ]]></description>
<pubDate>Tue, 30 Oct 2012 07:33:49 GMT</pubDate>
<guid>http://snipplr.com/view/68017/bash-inline-for-loop/</guid>
</item>
<item>
<title>(Python) Django DB alias and queries</title>
<link>http://snipplr.com/view/67932/django-db-alias-and-queries/</link>
<description><![CDATA[ <p>Useful when used with views</p> ]]></description>
<pubDate>Thu, 25 Oct 2012 08:55:36 GMT</pubDate>
<guid>http://snipplr.com/view/67932/django-db-alias-and-queries/</guid>
</item>
<item>
<title>(Bash) Tail Apache logs</title>
<link>http://snipplr.com/view/65296/tail-apache-logs/</link>
<description><![CDATA[ <p>It can be useful to take a peek at what Apache is doing but I always forget the location of the Apache logs so I can use tail.</p> ]]></description>
<pubDate>Fri, 01 Jun 2012 00:42:26 GMT</pubDate>
<guid>http://snipplr.com/view/65296/tail-apache-logs/</guid>
</item>
<item>
<title>(JavaScript) Extend jQuery selector types</title>
<link>http://snipplr.com/view/65282/extend-jquery-selector-types/</link>
<description><![CDATA[ <p>Extend jQuery :selector types

Ex: $("input:text")
$("input:email")</p> ]]></description>
<pubDate>Thu, 31 May 2012 06:59:43 GMT</pubDate>
<guid>http://snipplr.com/view/65282/extend-jquery-selector-types/</guid>
</item>
<item>
<title>(Apache) Apache enable module</title>
<link>http://snipplr.com/view/65281/apache-enable-module/</link>
<description><![CDATA[ <p>I always forget how to enable modules in Apache.</p> ]]></description>
<pubDate>Thu, 31 May 2012 05:47:08 GMT</pubDate>
<guid>http://snipplr.com/view/65281/apache-enable-module/</guid>
</item>
<item>
<title>(Bash) Apt-get list update packages</title>
<link>http://snipplr.com/view/65280/aptget-list-update-packages/</link>
<description><![CDATA[ <p>Dont upgrade, just list</p> ]]></description>
<pubDate>Thu, 31 May 2012 02:20:49 GMT</pubDate>
<guid>http://snipplr.com/view/65280/aptget-list-update-packages/</guid>
</item>
<item>
<title>(SVN) SVN st/up one/two punch</title>
<link>http://snipplr.com/view/65266/svn-stup-onetwo-punch/</link>
<description><![CDATA[ <p>First, st -u the file to get a revision number
Then, make a note of the revision. In case you need to rollback up to the revision number. No space after the r in -r.</p> ]]></description>
<pubDate>Wed, 30 May 2012 08:00:13 GMT</pubDate>
<guid>http://snipplr.com/view/65266/svn-stup-onetwo-punch/</guid>
</item>
<item>
<title>(ASP) CMS List Menu</title>
<link>http://snipplr.com/view/63384/cms-list-menu/</link>
<description><![CDATA[ <p>PROPERTIES:
 DisplayHighlightedItemAsLink="true"
 DisplayOnlySelectedPath="true"
 HighlightAllItemsInPath="true"
 HighlightedNodePath="/products/nokia"
 RenderLinkTitle="true"
 RenderImageAlt="true"

 FirstItemCssClass=" first"
 LastItemCssClass=" last"
 RenderCssClasses="true"
 RenderItemID="true"
 ItemIdPrefix="primary-"
 HoverCSSClassName="hover"
 CSSPrefix="primary-"
 UseAlternatingStyles="true"
	
 SubmenuIndicator="path/to/image/"
 OnMouseOutScript="alert('{%nodealiaspath%}')"
 OnMouseOverScript="alert(this.innerText);"
 UrlTarget="_blank"
 LoadDataAutomaticaly="true"
 RenderedHTML
	
METHODS:
 ReloadData</p> ]]></description>
<pubDate>Fri, 17 Feb 2012 05:26:39 GMT</pubDate>
<guid>http://snipplr.com/view/63384/cms-list-menu/</guid>
</item>
<item>
<title>(JavaScript) Sort list by data- attribute</title>
<link>http://snipplr.com/view/62110/sort-list-by-data-attribute/</link>
<description><![CDATA[ <p>Sorts a list by its 'data-' attribute. Customization is very easy.</p> ]]></description>
<pubDate>Sat, 24 Dec 2011 01:56:19 GMT</pubDate>
<guid>http://snipplr.com/view/62110/sort-list-by-data-attribute/</guid>
</item>
<item>
<title>(PHP) Replace string in PHP</title>
<link>http://snipplr.com/view/62102/replace-string-in-php/</link>
<description><![CDATA[ <p>Search for a string, if matched replace with second provided paramater. Third parameter is the variable whose value is the string you'd like to search.</p> ]]></description>
<pubDate>Fri, 23 Dec 2011 08:35:53 GMT</pubDate>
<guid>http://snipplr.com/view/62102/replace-string-in-php/</guid>
</item>
<item>
<title>(PHP) JSON with a PHP proxy</title>
<link>http://snipplr.com/view/61836/json-with-a-php-proxy/</link>
<description><![CDATA[ <p>Use PHP to get JSON

1) set the PHP to the URL of the JSON
2) echo a variable with the loaded data
3) use a request via jQuery to get the variable from PHP</p> ]]></description>
<pubDate>Tue, 13 Dec 2011 08:28:13 GMT</pubDate>
<guid>http://snipplr.com/view/61836/json-with-a-php-proxy/</guid>
</item>
<item>
<title>(CSS) Equal Columns</title>
<link>http://snipplr.com/view/58804/equal-columns/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 Sep 2011 23:57:06 GMT</pubDate>
<guid>http://snipplr.com/view/58804/equal-columns/</guid>
</item>
<item>
<title>(JavaScript) Equal Columns</title>
<link>http://snipplr.com/view/58733/equal-columns/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 16 Sep 2011 06:33:43 GMT</pubDate>
<guid>http://snipplr.com/view/58733/equal-columns/</guid>
</item>
<item>
<title>(JavaScript) Auto Refresh Page JS</title>
<link>http://snipplr.com/view/58713/auto-refresh-page-js/</link>
<description><![CDATA[ <p>Why do this?
===========
*hopefully* this will cause the page to refresh and provide a stop button in the future. The idea is to use it while developing in a text editor, as in Vim or its ilk, and not have to alt+tab all the _*flipping*_ time.

For right now its just straight from the source I got it. Additions will be made later.</p> ]]></description>
<pubDate>Fri, 16 Sep 2011 00:30:45 GMT</pubDate>
<guid>http://snipplr.com/view/58713/auto-refresh-page-js/</guid>
</item>
<item>
<title>(JavaScript) jQuery Image Replace using substring</title>
<link>http://snipplr.com/view/57682/jquery-image-replace-using-substring/</link>
<description><![CDATA[ <p>image rollovers in jquery are usually super easy. However it sucks when working with absolute image paths - like a separate media server or CDN. Heres a quick snippet using substring and lastIndexOf to swap out the image src.</p> ]]></description>
<pubDate>Tue, 09 Aug 2011 01:20:23 GMT</pubDate>
<guid>http://snipplr.com/view/57682/jquery-image-replace-using-substring/</guid>
</item>
<item>
<title>(C#) Kentic - CMSDesk CSS</title>
<link>http://snipplr.com/view/57637/kentic--cmsdesk-css/</link>
<description><![CDATA[ <p>Sometimes things look terrible in CMSDesk. With just a few adjustments to the master page and its CS file you can target elements in an admin.css page.</p> ]]></description>
<pubDate>Fri, 05 Aug 2011 01:30:52 GMT</pubDate>
<guid>http://snipplr.com/view/57637/kentic--cmsdesk-css/</guid>
</item>
<item>
<title>(PHP) Remove WP Role</title>
<link>http://snipplr.com/view/57504/remove-wp-role/</link>
<description><![CDATA[ <p>Screw up and make a role you don't want? Or want to remove default roles? Its easy! Just run this PHP snippet - probably in something like the theme's functions.php file. That worked out get for me there. Just refreshing the admin page was all it took!</p> ]]></description>
<pubDate>Tue, 02 Aug 2011 11:46:40 GMT</pubDate>
<guid>http://snipplr.com/view/57504/remove-wp-role/</guid>
</item>
</channel>
</rss>