Skeuomorphic credit card Here is a great credit card interface develop by Ken Keiter and shared on github. The interface essentially provides a representation of a credit card for the user to enter their details, along with and "flip it over" animation to fill in the details on the back. As the user fills in
I'm currently using the SyntaxHighligting Extended plugin on this blog. The code specifiers for different types of syntax are shown below. 'applescript @shBrushAppleScript.js', 'actionscript3 as3 @shBrushAS3.js', 'bash shell @shBrushBash.js', 'coldfusion cf @shBrushColdFusion.js', 'cpp c @shBrushCpp.js', 'c# c-sharp csharp @shBrushCSharp.js', 'css @shBrushCss.js', 'delphi pascal @shBrushDelphi.js', 'diff patch pas @shBrushDiff.js', 'erl erlang @shBrushErlang.js', 'groovy @shBrushGroovy.js', 'java @shBrushJava.js',
http://www.paulirish.com/2011/11-more-things-i-learned-from-the-jquery-source/ Determine version of IE The following code used conditional comments to inject an element and then see if it exists. If it exists, it means the conditional comments executed. Note that the while loop is just the conditions; it doesn't have a BLOCK section. The comma between the statements inside the while loop essentially
http://www.paulirish.com/2009/perf/ Best way to append an element Create and append an element First way: Notice in the above that you have to requery to DOM to get the appended element. Second way. Better way, no requery of DOM necessary: Never pass in a selector string $('#whats.the', context) Always use the form: $(root).find(selector) Don't use this
Originally posted by David Walsh 1. String.prototype.replace: /g and /i Flags String's replace method doesn't replace all occurrences of the search, just the first. But, you can use a regular expression and the global flag (/g) need to be used: // Mistake var str = "David is an Arsenal fan, which means David is great"; str.replace("David", "Darren"); //
Often, if i'm working on a simple website to show someone, i'll host it in the public folder of my dropbox site and send them a link to the public URL. Today I did this with a site using jQuery and it wouldn't work. Turned out that jQuery was being blocked when loaded from code.jQuery.com.