This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- From http://github.com/paulirish/html5-boilerplate --> | |
<!-- Grab Google CDN's jQuery. fall back to local if necessary --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--> | |
Following code gets information about photos from Flickr via YQL for the given search term | |
Author : avinash | |
Email : [email protected] | |
<--> | |
<h2>Using YQL to Access the Flickr API</h2> | |
<form name='upcoming_form'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Request({ | |
url: '/sitemap.xml', | |
method: 'get', | |
onSuccess: function(responseText, responseXML) { | |
responseXML.getElements('url').each(function(url) { | |
alert(item.getElement('loc').get('text')); | |
}); | |
} | |
}).send(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//XHR to retrieve an atom feed and parse the result | |
//with MooTools Slick selector engine | |
new Request({ | |
url: '/index.php?format=feed&type=atom', | |
data : 'xml', | |
method: 'get', | |
onComplete: function(responseText, responseXML) { | |
console.log(Slick.search(responseXML, 'entry > title')); | |
} | |
}).send(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#code from article at http://beardscratchers.com/journal/compressing-css-and-javascript-with-yui-compressor | |
JSDIR="./www/js" | |
echo "1. Combining Javascript" | |
# Combine all the javascript to a single temporary file | |
cat $JSDIR/mootools-1.2-core.js \ | |
$JSDIR/mootools-1.2-more.js \ | |
$JSDIR/functions.js \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prevents web inspector and firebug console errors from appearing in IE | |
// if a debugging flag is accidentally left in somewhere. | |
// originally from twitter.com | |
if (!window.console) { | |
(function() { | |
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", | |
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; | |
window.console = {}; | |
for (var i = 0; i < names.length; ++i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- original source is http://diggintojava.blogspot.com/2011/02/converttransform-xml-attributes-to.html --> | |
<xsl:stylesheet | |
version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" encoding="UTF-8"/> | |
<xsl:strip-space elements="*" /> | |
<xsl:template match="*"> | |
<xsl:copy > | |
<xsl:if test="@*"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table id="social-media" class="tablesorter"> | |
<caption>Twitter Dashboard with YQL</caption> | |
<thead> | |
<tr> | |
<th>Account Name</th> | |
<th>Followers</th> | |
<th>Following</th> | |
<th>Last Tweet</th> | |
</tr> | |
</thead> |
OlderNewer