<?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/simple</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 01:50:57 GMT</pubDate>
<item>
<title>(Java) Basic browser in java fx - alexedy</title>
<link>http://snipplr.com/view/70308/basic-browser-in-java-fx/</link>
<description><![CDATA[ <p>don't forget to add jfxrt.jar to class path</p> ]]></description>
<pubDate>Thu, 07 Mar 2013 09:23:09 GMT</pubDate>
<guid>http://snipplr.com/view/70308/basic-browser-in-java-fx/</guid>
</item>
<item>
<title>(CSS) CSS3 Box Sizing Made Easy - bmayzure</title>
<link>http://snipplr.com/view/69646/css3-box-sizing-made-easy/</link>
<description><![CDATA[ <p>When box sizing is set, the padding, border and margin no longer add onto the total width or height of the element. Instead, they eat into the set width or height. So, if you have a box whose width is set to 300px, and padding set to 10px, then the total width of the box is still 300px. Instead, there are 20 less pixels inside the box for content such as text or images. This may be a confusing concept but one that will definitely come in handy, especially to those who do not like to do math because we all know that in the real world measurements are made up of wacky numbers and not increments of 10. 

**Source:** [http://designmodo.com/css-layout-properties/](http://designmodo.com/css-layout-properties/) and [http://css-tricks.com/box-sizing/](http://css-tricks.com/box-sizing/)</p> ]]></description>
<pubDate>Fri, 25 Jan 2013 11:10:53 GMT</pubDate>
<guid>http://snipplr.com/view/69646/css3-box-sizing-made-easy/</guid>
</item>
<item>
<title>(Java) Simple User Agent (Mobile and Smartphone) Detection and Redirction with PHP - Klostrag</title>
<link>http://snipplr.com/view/69201/simple-user-agent-mobile-and-smartphone-detection-and-redirction-with-php/</link>
<description><![CDATA[ <p>This is similar to the one for PHP but modified for JAVA.</p> ]]></description>
<pubDate>Sat, 22 Dec 2012 01:56:10 GMT</pubDate>
<guid>http://snipplr.com/view/69201/simple-user-agent-mobile-and-smartphone-detection-and-redirction-with-php/</guid>
</item>
<item>
<title>(PHP) Simple PHP cache class - peckham</title>
<link>http://snipplr.com/view/67728/simple-php-cache-class/</link>
<description><![CDATA[ <p>A simple class to cache files (or other results) with PHP.</p> ]]></description>
<pubDate>Sun, 14 Oct 2012 01:16:55 GMT</pubDate>
<guid>http://snipplr.com/view/67728/simple-php-cache-class/</guid>
</item>
<item>
<title>(JavaScript) Easy Facebook Like button from designer snacks - jkdreaming</title>
<link>http://snipplr.com/view/64405/easy-facebook-like-button-from-designer-snacks/</link>
<description><![CDATA[ <p>Just add an image... try it.</p> ]]></description>
<pubDate>Sat, 07 Apr 2012 05:15:37 GMT</pubDate>
<guid>http://snipplr.com/view/64405/easy-facebook-like-button-from-designer-snacks/</guid>
</item>
<item>
<title>(Perl) Iterate through variable line by line. - EmbeddedInsanity</title>
<link>http://snipplr.com/view/63982/iterate-through-variable-line-by-line/</link>
<description><![CDATA[ <p>Splits on new line, to load array, and cycle through each line in array. 

In this example, we are loading the holding array "@thing" with data from the "_content" key of the $results hashref.</p> ]]></description>
<pubDate>Sat, 17 Mar 2012 03:30:23 GMT</pubDate>
<guid>http://snipplr.com/view/63982/iterate-through-variable-line-by-line/</guid>
</item>
<item>
<title>(PHP) Facebook Retrieve Recent Facebook Post(s) with Simple Pie RSS and PHP - rliverman</title>
<link>http://snipplr.com/view/63946/facebook-retrieve-recent-facebook-posts-with-simple-pie-rss-and-php/</link>
<description><![CDATA[ <p>Relies on "trunCate" a truncating function.</p> ]]></description>
<pubDate>Thu, 15 Mar 2012 11:44:39 GMT</pubDate>
<guid>http://snipplr.com/view/63946/facebook-retrieve-recent-facebook-posts-with-simple-pie-rss-and-php/</guid>
</item>
<item>
<title>(jQuery) Jquery FadeIn/Out Continuous  Rotator - LadyLoomis</title>
<link>http://snipplr.com/view/63676/jquery-fadeinout-continuous--rotator/</link>
<description><![CDATA[ <p>Simple jQuery fadeIn/Out continuous rotator.</p> ]]></description>
<pubDate>Fri, 02 Mar 2012 03:41:21 GMT</pubDate>
<guid>http://snipplr.com/view/63676/jquery-fadeinout-continuous--rotator/</guid>
</item>
<item>
<title>(PHP) Simple class to retrieve an ID using a URL of the Youtube - leandroperes</title>
<link>http://snipplr.com/view/62315/simple-class-to-retrieve-an-id-using-a-url-of-the-youtube/</link>
<description><![CDATA[ <p>Simple class to retrieve an ID using a URL of the Youtube</p> ]]></description>
<pubDate>Thu, 05 Jan 2012 08:42:49 GMT</pubDate>
<guid>http://snipplr.com/view/62315/simple-class-to-retrieve-an-id-using-a-url-of-the-youtube/</guid>
</item>
<item>
<title>(PHP) First Code 2 - Merrill Alegado - jerryvig</title>
<link>http://snipplr.com/view/60552/first-code-2--merrill-alegado/</link>
<description><![CDATA[ <p>http://www.poetiv.com/</p> ]]></description>
<pubDate>Fri, 04 Nov 2011 20:40:18 GMT</pubDate>
<guid>http://snipplr.com/view/60552/first-code-2--merrill-alegado/</guid>
</item>
<item>
<title>(Java) Simple alert for Android - Vetromilla</title>
<link>http://snipplr.com/view/60453/simple-alert-for-android/</link>
<description><![CDATA[ <p>Displays a simple alert using Toast</p> ]]></description>
<pubDate>Tue, 01 Nov 2011 23:32:15 GMT</pubDate>
<guid>http://snipplr.com/view/60453/simple-alert-for-android/</guid>
</item>
<item>
<title>(PHP) CSS minifier and color replaces - FatFolderDesigner</title>
<link>http://snipplr.com/view/58764/css-minifier-and-color-replaces/</link>
<description><![CDATA[ <p>With this file you can load stylesheets and minify the code while changing colors. The stylesheets are loaded using file_get_contents and you can attach them one after another if you have multiple sheets. The colors are replaces based on a variable thats commented out of the css code, an example of the way thats formatted is below the cod block. The minification is done with a regular expression that removes all comments, line breaks, and un-needed spaces. The color replacement is done with a different regular expression and the colorize function that takes the variable and returns a color. You can use whatever method you want to get the color, but I personally am using variables from a Wordpress plugin (and stores using the Wordpress options function) to give users color customizability of their site.

If you have any questions or comments you can post a comment here or at the link, there is also a more in depth explanation at the link if your interested.

UPDATE: improved it's ability to find colors in the CSS declaration, also added the "transparent" keyword in as something it can find.</p> ]]></description>
<pubDate>Sun, 18 Sep 2011 06:40:30 GMT</pubDate>
<guid>http://snipplr.com/view/58764/css-minifier-and-color-replaces/</guid>
</item>
<item>
<title>(CSS) Starry Night Parallax CSS Simplified - DeluxiveState</title>
<link>http://snipplr.com/view/58688/starry-night-parallax-css-simplified/</link>
<description><![CDATA[ <p>A Simplified solution to CSS-Tricks Starry Night Parallax Effect. Se URL for demo and original article. Example files can also be downloaded at the URL.</p> ]]></description>
<pubDate>Thu, 15 Sep 2011 03:00:42 GMT</pubDate>
<guid>http://snipplr.com/view/58688/starry-night-parallax-css-simplified/</guid>
</item>
<item>
<title>(Java) Simple Java Multithreading Example - jerryvig</title>
<link>http://snipplr.com/view/58638/simple-java-multithreading-example/</link>
<description><![CDATA[ <p>This is a simple Java multithreading example that uses ActualThread as the class in which the thread code is contained. ActualThread must implement runnable.</p> ]]></description>
<pubDate>Tue, 13 Sep 2011 18:07:07 GMT</pubDate>
<guid>http://snipplr.com/view/58638/simple-java-multithreading-example/</guid>
</item>
<item>
<title>(PHP) Simple MySQL to CSV - FatFolderDesigner</title>
<link>http://snipplr.com/view/58408/simple-mysql-to-csv/</link>
<description><![CDATA[ <p>Just a short little script that takes a mysql query and turns it into a csv file that downloads automatically. If your interested in the details you can hit up the link.</p> ]]></description>
<pubDate>Sat, 03 Sep 2011 11:34:22 GMT</pubDate>
<guid>http://snipplr.com/view/58408/simple-mysql-to-csv/</guid>
</item>
<item>
<title>(jQuery) Simple Tabs - amandalaine</title>
<link>http://snipplr.com/view/56270/simple-tabs/</link>
<description><![CDATA[ <p>The following jquery presumes HTML involving:
 (contains divs of each tab)
 (contains divs of each content)</p> ]]></description>
<pubDate>Fri, 08 Jul 2011 00:57:53 GMT</pubDate>
<guid>http://snipplr.com/view/56270/simple-tabs/</guid>
</item>
<item>
<title>(PHP) Simple inline PHP alternating rows - FatFolderDesigner</title>
<link>http://snipplr.com/view/56219/simple-inline-php-alternating-rows/</link>
<description><![CDATA[ <p>Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it required you to have a “counter” or “switch” variable, usually placed at the bottom of the loop, overall very messy.

I had a boss who thought he was on the cutting edge by compressing the traditional if statement into a shorthand version (saving 2-3 lines of code), but the system was still using a $class variable and still requires a counting or switch variable. It was still a mess and added clutter to the code.

Earlier today I was working on outputting client records forafully customized application. Wanting to avoid such messy code as I looked for a better solution and with a little tweaking and playing I came up with this.

I've also included a simple example of how it's used in action. If you have any questions or concerns let me know either here or at the link (there's some more info about this method there too if your intreated).</p> ]]></description>
<pubDate>Thu, 07 Jul 2011 12:24:00 GMT</pubDate>
<guid>http://snipplr.com/view/56219/simple-inline-php-alternating-rows/</guid>
</item>
<item>
<title>(jQuery) Simple Validation of form fields - reverend</title>
<link>http://snipplr.com/view/55529/simple-validation-of-form-fields/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 21 Jun 2011 09:00:02 GMT</pubDate>
<guid>http://snipplr.com/view/55529/simple-validation-of-form-fields/</guid>
</item>
<item>
<title>(PHP) PHP + JSON + Twitter API - richardmaisano</title>
<link>http://snipplr.com/view/54710/php--json--twitter-api/</link>
<description><![CDATA[ <p>Nothing revolutionary, just a simple implementation.

A reworking from Brian Cray's source code:
http://briancray.com/2009/08/21/tweeted-links-twitter-api-php-cache/

Note: requires creating a cache file, '/caches/twitter', relative to source.</p> ]]></description>
<pubDate>Wed, 01 Jun 2011 14:59:48 GMT</pubDate>
<guid>http://snipplr.com/view/54710/php--json--twitter-api/</guid>
</item>
<item>
<title>(HTML) simple form - herrfischerhamburg</title>
<link>http://snipplr.com/view/53629/simple-form/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 17 May 2011 02:17:44 GMT</pubDate>
<guid>http://snipplr.com/view/53629/simple-form/</guid>
</item>
</channel>
</rss>