<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Intellectual Pirates &#187; CSS</title>
	<atom:link href="http://intellectualpirates.net/category/tutorials/css-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://intellectualpirates.net</link>
	<description>Web Development Courses, Rants, Tutorials and Hacks</description>
	<lastBuildDate>Wed, 07 Dec 2011 00:59:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Deck of Playing Cards in JavaScript</title>
		<link>http://intellectualpirates.net/deck-of-playing-cards-in-javascript/</link>
		<comments>http://intellectualpirates.net/deck-of-playing-cards-in-javascript/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 18:09:00 +0000</pubDate>
		<dc:creator>antic</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Deck]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Playing Cards]]></category>

		<guid isPermaLink="false">http://intellectualpirates.net/?p=1637</guid>
		<description><![CDATA[So, I drank a whole pot of coffee yesterday. And it was a black, black, pot of coffee--like the soul of an exploded quasar, black. Twelve hours later (midnight), I was buzzing. So, what did I do? I wrote a jQuery library. Check out the project on github: jquery.playingcards. Check out a demo here. The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/atomantic/JavaScript-Playing-Cards"><img src="http://intellectualpirates.net/wp-content/uploads/2010/06/Picture-3.png" alt="" title="Cards Laid on the Table" width="450" height="280" class="aligncenter size-full wp-image-1639" /></a></p>
<p>So, I drank a whole pot of coffee yesterday. And it was a black, black, pot of coffee--like the soul of an exploded quasar, black. Twelve hours later (midnight), I was buzzing. So, what did I do? I wrote a jQuery library.</p>
<p>Check out the project on github: <a href="http://github.com/atomantic/JavaScript-Playing-Cards">jquery.playingcards</a>.</p>
<p>Check out a <a target="_blank" href="/playingcards">demo here</a>. The demo just writes the cards to the page and allows you to click them to flip the cards. Will add buttons for the other behaviors (shuffle, pile, etc) soon.</p>
<h2>How?</h2>
<p>I used jQuery as a base (it's a jquery plugin). However, this code could easily be extracted out to be used with any other JavaScript framework or even stand alone.</p>
<p>The cards are drawn mostly in CSS, using images only in the case of face cards--though, I have committed an open source card font that will eventually be implemented as a configuration option in place of the css/images. The images are courtesy of David Bellot with his <a href="http://david.bellot.free.fr/svg-cards/">awesome SVG card set</a>.</p>
<h2>Why?</h2>
<ol>
<li>I wanted to use <a href="http://github.com/atomantic/JavaScript-Playing-Cards">github</a> since just about every cool project I've seen in the last 6 months is hosted there.</li>
<li>I wanted to make a public jQuery plugin (made a few before but only proprietarily for companies so I couldn't share them)</li>
<li>When interviewing developer candidates, I frequently ask that the person code a deck of cards with a few simple methods (init, shuffle, deal) and I realized that although I had thought a lot about this problem and seen other peoples code, I hadn't taken the time to write my own</li>
<li>Doesn't everyone need a deck of cards? Why not have one in your JavaScript arsenal?</li>
</ol>
<h2>Get Involved</h2>
<p>There's still a lot that can be added to this library. If you want to develop a game pack extension for it, let me know. Wouldn't it be cool to have a generic deck of cards and set of rules for every card game known to man, all written in JavaScript? I think so.</p>
<h2>ToDo</h2>
<ul>
<li>Buttons for running demo methods (shuffle, deal, pile, etc)</li>
<li>Handling for including card.ttf as a font replacement for the css images (if set in config)</li>
<li>Keeping track of hands/players? -- probably an extension along with game rules</li>
<li>Game rule packs (maybe these will extend a board that keeps track of hands, players, score, etc</li>
</ul>
<p>Let the games begin!</p>
<div class="plus-one-wrap"><g:plusone href="http://intellectualpirates.net/deck-of-playing-cards-in-javascript/"></g:plusone></div><p><a href='http://www.twitter.com/antic' class='twitlink'>follow on Twitter</a></p>]]></content:encoded>
			<wfw:commentRss>http://intellectualpirates.net/deck-of-playing-cards-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Filterable Life Plan / Timeline (PHP, jQuery, CSS)</title>
		<link>http://intellectualpirates.net/dynamic-filterable-life-plan-timeline-php-jquery-css/</link>
		<comments>http://intellectualpirates.net/dynamic-filterable-life-plan-timeline-php-jquery-css/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 23:17:15 +0000</pubDate>
		<dc:creator>antic</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[5 year plan]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[filterable]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[life plan]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://intellectualpirates.net/?p=1410</guid>
		<description><![CDATA[I just created my life plan (or the start of one anyway--I'll be editing this thing for a while) and I figured I'd share with you the code used to make it. My live updated version is on my Portfolio: The Future as I See It. Demo show allcreative (1)education (1)fitness (2)social (2)travel (2)work (1) [...]]]></description>
			<content:encoded><![CDATA[<br />
<b>Fatal error</b>:  Cannot redeclare getuntil() (previously declared in /home/lendren/intellectualpirates.net/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code:7) in <b>/home/lendren/intellectualpirates.net/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code</b> on line <b>32</b><br />

