<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>Snipd</title>
	<link>http://snipd.net</link>
	<description>Handy snippets of code</description>
	<lastBuildDate>Thu, 07 Mar 2019 07:43:33 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	

	<item>
		<title>Parsing XML in PHP</title>
		<description><![CDATA[PHP offers several methods for parsing XML files. This example uses the built-in DOM functionality for PHP5. Suppose we have an XML file which holds a collection of robots. Transformers to be prednisone injection with bactrim. more specific. &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;robots&#62; &#60;robot id=&#34;1&#34;&#62; &#60;name&#62;Optimus Prime&#60;/name&#62; &#60;race&#62;Autobots&#60;/race&#62; &#60;/robot&#62; &#60;robot id=&#34;2&#34;&#62; &#60;name&#62;Megatron&#60;/name&#62; &#60;race&#62;Decepticons&#60;/race&#62; &#60;/robot&#62; &#60;/robots&#62; The [...]]]></description>
		<link>http://snipd.net/parsing-xml-in-php</link>
			</item>
	<item>
		<title>For loops in Bash</title>
		<description><![CDATA[For loops in Bash can come le prix du cialis en pharmacie. in handy when for example, you want to perform bulk operations. Think of renaming all files in a directory or executing a collection of scripts. The following snippet simply iterates through a set of prime numbers and prints them to the console. #!/bin/bash [...]]]></description>
		<link>http://snipd.net/for-loops-in-bash</link>
			</item>
	<item>
		<title>Parsing XML in Java</title>
		<description><![CDATA[There are several methods available for parsing an XML file. Some parsers transform the XML file into a traversable DOM tree. The tree consists of a root node and one or more child nodes belonging to the root node. These child nodes are able have child nodes of their own and so forth. Nodes without children [...]]]></description>
		<link>http://snipd.net/parsing-xml-in-java</link>
			</item>
	<item>
		<title>Generating a random color in C#</title>
		<description><![CDATA[Always wanted to have your own random color generator in C#? This snippet shows you how to do it. public class RandomColorGenerator { Random r = new Random(DateTime.Now.Millisecond); public RandomColorGenerator(){ } public Color RandomColor(){ byte red = (byte)r.Next(0, 255); byte green = (byte)r.Next(0, 255); byte blue = (byte)r.Next(0, 255); return new Color(red, green, blue); } [...]]]></description>
		<link>http://snipd.net/generating-a-random-color-in-c</link>
			</item>
	<item>
		<title>Inheritance in PHP</title>
		<description><![CDATA[Classes can contain subclasses and subclasses can in turn contain superclasses. For example, the class Person could be the superclass of the class PizzaDeliveryGuy. This is illustrated in the following UML class diagram. You can use the following sentence to ease the identification of a subclass and a superclass. &#8220;&#8230; is &#8230;&#8221; Examples: &#8220;PizzaDeliveryGuy is [...]]]></description>
		<link>http://snipd.net/inheritance-in-php</link>
			</item>
	<item>
		<title>Instantiation in Objective-C</title>
		<description><![CDATA[Instantiation in Objective-C consists of allocating memory for the instance and calling init. NSString* foo = [[NSString alloc] init];]]></description>
		<link>http://snipd.net/instantiation-in-objective-c</link>
			</item>
	<item>
		<title>Framerate GameComponent to calculate the frame rate (XNA Framework)</title>
		<description><![CDATA[Microsoft XNA can be used to develop computer games. This code snippet contains a so called GameComponent written in C#. The GameComponent is called Framerate and it simply calculates the frame rate of the game at each Update cycle. public class Framerate : Microsoft.Xna.Framework.GameComponent { public float frames = 0f; public float deltaFPSTime = 0f; [...]]]></description>
		<link>http://snipd.net/framerate-gamecomponent-to-calculate-the-frame-rate-xna-framework</link>
			</item>
	<item>
		<title>Properties in C#</title>
		<description><![CDATA[Properties in C# can be used to set or get the value of an attribute. Suppose you have a class called Person which has the attributes name and age. class Person { String name; int age; public Person(String name, int age){ this.name = name; this.age = age; } } The attributes of the Person class [...]]]></description>
		<link>http://snipd.net/properties-in-c</link>
			</item>
	<item>
		<title>Constructors and destructors in PHP</title>
		<description><![CDATA[You might want to execute code when an instance of an object gets constructed or destructed. PHP offers constructors and destructors for this purpose. A constructor can be created by declaring a function called __construct within a class and a destructor can in turn be created by declaring a function called __destruct . &#60;?php class [...]]]></description>
		<link>http://snipd.net/constructors-and-destructors-in-php</link>
			</item>
	<item>
		<title>Hiding and showing elements with jQuery</title>
		<description><![CDATA[If you don&#8217;t know what jQuery is, I&#8217;d recommend you to visit jquery.com for clarification. Suppose you have an HTML div element which you want to hide  and show. &#60;div id=&#039;foo&#039;&#62;bar&#60;/div&#62; The next step is to use a so called selector to select the element and call the hide() function to hide the element. $(&#039;#foo&#039;).hide(); The [...]]]></description>
		<link>http://snipd.net/hiding-and-showing-elements-with-jquery</link>
			</item>
</channel>
</rss>
