<?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/tags/first</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 01:20:09 GMT</pubDate>
<item>
<title>(CSS) Change styles of First/Last Elements in CSS - apphp-snippets</title>
<link>http://snipplr.com/view/70264/change-styles-of-firstlast-elements-in-css/</link>
<description><![CDATA[ <p>Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).</p> ]]></description>
<pubDate>Tue, 05 Mar 2013 20:12:22 GMT</pubDate>
<guid>http://snipplr.com/view/70264/change-styles-of-firstlast-elements-in-css/</guid>
</item>
<item>
<title>(C++) glavni.cpp - fsabalic2</title>
<link>http://snipplr.com/view/68454/glavnicpp/</link>
<description><![CDATA[ <p>Glavni kod u kome unosimo podatke, sortiramo ih te ispisujemo</p> ]]></description>
<pubDate>Mon, 12 Nov 2012 08:52:31 GMT</pubDate>
<guid>http://snipplr.com/view/68454/glavnicpp/</guid>
</item>
<item>
<title>(C++) pokazivaci.h - fsabalic2</title>
<link>http://snipplr.com/view/68442/pokazivacih/</link>
<description><![CDATA[ <p>Inplementacija liste pomocu pokazivaca, header file(Izaglavlje</p> ]]></description>
<pubDate>Mon, 12 Nov 2012 08:44:36 GMT</pubDate>
<guid>http://snipplr.com/view/68442/pokazivacih/</guid>
</item>
<item>
<title>(C++) polja.h - fsabalic2</title>
<link>http://snipplr.com/view/68440/poljah/</link>
<description><![CDATA[ <p>Inplementacija ATP liste pomoći pokazivača, header file(zaglavlje)</p> ]]></description>
<pubDate>Mon, 12 Nov 2012 08:42:31 GMT</pubDate>
<guid>http://snipplr.com/view/68440/poljah/</guid>
</item>
<item>
<title>(CSS) CSS * (first style sheet item) - prwhitehead</title>
<link>http://snipplr.com/view/63488/css--first-style-sheet-item/</link>
<description><![CDATA[ <p>what could be placed in the * {} inorder to solve a few common issues</p> ]]></description>
<pubDate>Wed, 22 Feb 2012 05:23:02 GMT</pubDate>
<guid>http://snipplr.com/view/63488/css--first-style-sheet-item/</guid>
</item>
<item>
<title>(ActionScript 3) Get length from first line textfield - hejaaa</title>
<link>http://snipplr.com/view/53702/get-length-from-first-line-textfield/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 17 May 2011 23:17:59 GMT</pubDate>
<guid>http://snipplr.com/view/53702/get-length-from-first-line-textfield/</guid>
</item>
<item>
<title>(PHP) Find The Number Of A Week In A Month For A Given Date - aristoworks</title>
<link>http://snipplr.com/view/51465/find-the-number-of-a-week-in-a-month-for-a-given-date/</link>
<description><![CDATA[ <p>This simple function allows you to find a weeks position in the month based on a given date.  For instance I needed to alert the user their date was the "Second Week Of January" during a given month.  I may never use it again but it came in very handy for this particular project.</p> ]]></description>
<pubDate>Sun, 03 Apr 2011 04:15:36 GMT</pubDate>
<guid>http://snipplr.com/view/51465/find-the-number-of-a-week-in-a-month-for-a-given-date/</guid>
</item>
<item>
<title>(PHP) Wordpress Get The First Image - janvdm</title>
<link>http://snipplr.com/view/49042/wordpress-get-the-first-image/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 Feb 2011 18:03:02 GMT</pubDate>
<guid>http://snipplr.com/view/49042/wordpress-get-the-first-image/</guid>
</item>
<item>
<title>(PHP) Wordpress Display First Post Image - laurentzziu</title>
<link>http://snipplr.com/view/44136/wordpress-display-first-post-image/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 15 Nov 2010 02:37:44 GMT</pubDate>
<guid>http://snipplr.com/view/44136/wordpress-display-first-post-image/</guid>
</item>
<item>
<title>(CSS) Drop Cap the First Latter of - iamadams</title>
<link>http://snipplr.com/view/38680/drop-cap-the-first-latter-of/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 07 Aug 2010 18:39:32 GMT</pubDate>
<guid>http://snipplr.com/view/38680/drop-cap-the-first-latter-of/</guid>
</item>
<item>
<title>(PHP) Function \"lcfirst\" for PHP - Sverri</title>
<link>http://snipplr.com/view/38025/function-lcfirst-for-php/</link>
<description><![CDATA[ <p>Adds the function "lcfirst" if it does not exist (it was first added in PHP 5.3.0) while its counterpart, "ucfirst" was added in PHP 4.</p> ]]></description>
<pubDate>Thu, 29 Jul 2010 13:05:47 GMT</pubDate>
<guid>http://snipplr.com/view/38025/function-lcfirst-for-php/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Capitalise the First Letter of a String - adrianparr</title>
<link>http://snipplr.com/view/33586/as3-capitalise-the-first-letter-of-a-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 29 Apr 2010 09:08:52 GMT</pubDate>
<guid>http://snipplr.com/view/33586/as3-capitalise-the-first-letter-of-a-string/</guid>
</item>
<item>
<title>(jQuery) jQuery - Add First and Last Class to LI - smoothdzion</title>
<link>http://snipplr.com/view/26333/jquery--add-first-and-last-class-to-li/</link>
<description><![CDATA[ <p>Since :first-child and :last-child aren't compatible with all modern browsers I thought I'd post this snippet.  It make automating the class creation easier too instead of having to remember when typing up your HTML or creating logic in your programming.

Rename "first-item" and/or "last-item" to whatever class you want to use.  You can change the "li" part of the code to whatever element your want or even remove it altogether.</p> ]]></description>
<pubDate>Tue, 12 Jan 2010 15:20:16 GMT</pubDate>
<guid>http://snipplr.com/view/26333/jquery--add-first-and-last-class-to-li/</guid>
</item>
<item>
<title>(JavaScript) Check first character of a string - NyX</title>
<link>http://snipplr.com/view/19131/check-first-character-of-a-string/</link>
<description><![CDATA[ <p>Checks if the first char of a string is a : letter, number, dot ( . ), arond ( @ ), underscore ( _ ).</p> ]]></description>
<pubDate>Tue, 01 Sep 2009 11:46:13 GMT</pubDate>
<guid>http://snipplr.com/view/19131/check-first-character-of-a-string/</guid>
</item>
<item>
<title>(jQuery) jQuery: select first and/or last list items - cyberhobo</title>
<link>http://snipplr.com/view/18407/jquery-select-first-andor-last-list-items/</link>
<description><![CDATA[ <p>Select the first and last item in an unordered list. As an example, I add a CSS class to each.

In WordPress, it's not so easy to get wp\_list\_pages() to generate these classes. jQuery provides an easy out for javascript-enabled clients.</p> ]]></description>
<pubDate>Mon, 17 Aug 2009 17:14:01 GMT</pubDate>
<guid>http://snipplr.com/view/18407/jquery-select-first-andor-last-list-items/</guid>
</item>
<item>
<title>(XSLT) First Character to Upper Case - Meander365</title>
<link>http://snipplr.com/view/17831/first-character-to-upper-case/</link>
<description><![CDATA[ <p>Generate the first character then show the remaining string.</p> ]]></description>
<pubDate>Mon, 03 Aug 2009 07:14:16 GMT</pubDate>
<guid>http://snipplr.com/view/17831/first-character-to-upper-case/</guid>
</item>
<item>
<title>(jQuery) In wordpress navigation, target the first &amp;amp; last li tags &amp;amp; style - kstetson</title>
<link>http://snipplr.com/view/15503/in-wordpress-navigation-target-the-first--last-li-tags--style/</link>
<description><![CDATA[ <p>Use javascript to add a class of last onto the first and the last li tags in the navigation (add to global.js). Then use css to style. For instance, if the first li is home, you can set the css to hide this link (if you want the logo to act as your home link instead). You may have a background pattern that you want to turn off on your last li tag, you can set the css background to none in this case.</p> ]]></description>
<pubDate>Wed, 03 Jun 2009 22:49:01 GMT</pubDate>
<guid>http://snipplr.com/view/15503/in-wordpress-navigation-target-the-first--last-li-tags--style/</guid>
</item>
<item>
<title>(SAS) Selecting 5 max observations per category - statsplank</title>
<link>http://snipplr.com/view/15335/selecting-5-max-observations-per-category/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 26 May 2009 15:43:52 GMT</pubDate>
<guid>http://snipplr.com/view/15335/selecting-5-max-observations-per-category/</guid>
</item>
<item>
<title>(Bash) SED Find and Replace First Occurrence - iloveitaly</title>
<link>http://snipplr.com/view/15272/sed-find-and-replace-first-occurrence/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 23 May 2009 20:11:38 GMT</pubDate>
<guid>http://snipplr.com/view/15272/sed-find-and-replace-first-occurrence/</guid>
</item>
<item>
<title>(Ruby) Detect the first and last iteration of a loop in Ruby - noah</title>
<link>http://snipplr.com/view/12419/detect-the-first-and-last-iteration-of-a-loop-in-ruby/</link>
<description><![CDATA[ <p>It's great that, at the times I really need it, I can ask for Ruby help on `#nyc.rb`:

      how can I detect the first or last iteration of a loop in
                      Ruby or Rails?                       
      what sort of loop? an array loop?
      or something else?
      f == array.first?
      in case of an array you want #each_with_index
      yah each_with_index would do it, thanks much 
      I'm looping through an array printing LIs and I want to apply
                      css classes to the first and last LIs respectively</p> ]]></description>
<pubDate>Fri, 20 Feb 2009 13:44:51 GMT</pubDate>
<guid>http://snipplr.com/view/12419/detect-the-first-and-last-iteration-of-a-loop-in-ruby/</guid>
</item>
</channel>
</rss>