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
$gowalla_results = simplexml_load_file('http://gowalla.com/users/fleeting/visits.atom'); | |
$i = 1; | |
foreach($gowalla_results->entry as $gowalla){ | |
if ($i <= 3) { | |
echo '<span id="gowalla-'.$i.'">'; | |
echo ucfirst(substr($gowalla->summary, 15)).' on '.date("m/d/y G:i:sA", strtotime($gowalla->updated)). '<br />'; | |
echo '</span>'; | |
} | |
$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
function equalHeight(group) { | |
tallest = 0; | |
group.each(function() { | |
thisHeight = $(this).height(); | |
if(thisHeight > tallest) { | |
tallest = thisHeight; | |
} | |
}); | |
group.height(tallest); | |
} |
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
<style> | |
/* Images are wrapped in divs classed "flickr_badge_image" with ids "flickr_badge_imageX" where "X" is an integer specifying ordinal position. Below are some styles to get you started! */ | |
#flickr_badge_uber_wrapper { | |
text-align: center; | |
width: 265px; | |
} | |
#flickr_badge_wrapper { | |
padding: 0; |
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
.content a:link, .content a:visited, .content a:active { | |
color: #323232; | |
text-decoration: none; | |
border-bottom: 0; | |
} | |
.content:hover a:link, .content:hover a:visited, .content:hover a:active { | |
color: #323232; | |
text-decoration: none; | |
border-bottom: 1px dashed #323232; |
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
/* STYLES ARTICLE LINKS ON HOVER */ | |
.content a:link, .content a:visited, .content a:active { | |
color: #888; | |
text-decoration: none; | |
border-bottom: 0; | |
} | |
article:hover a:link, article:hover a:visited, article:hover a:active { | |
color: #323232; | |
text-decoration: none; |
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
<?php global $more; | |
$temp = $wp_query; | |
$wp_query= null; | |
$wp_query = new WP_Query(); | |
$wp_query->query('showposts=1'); | |
?> | |
<?php if (have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?> | |
<?php $more = 0; ?> | |
<h4><?php the_title(); ?></h4> |
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
$flickrAPI = 'http://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&api_key=69f31081cc7123755564c66ae0af159c&user_id=32609765@N00&per_page=5&format=php_serial'; | |
$rsp = file_get_contents($flickrAPI); | |
$rsp_obj = unserialize($rsp); | |
if ($rsp_obj['stat'] == 'ok'){ | |
foreach ($rsp_obj['photos']['photo'] as $flickrPhoto) { | |
echo '<a href="http://www.flickr.com/photos/'.$flickrPhoto['owner'].'/'.$flickrPhoto['id'].'">'.$flickrPhoto['title'].'</a><br />'; | |
echo '<img src=http://farm'.$flickrPhoto['farm'].'.static.flickr.com/'.$flickrPhoto['server'].'/'.$flickrPhoto['id'].'_'.$flickrPhoto['secret'].'_s.jpg"><br /><br />'; |
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
<script type="text/javascript"> | |
$(document).ready( function(){ | |
getTwitters('tweet', { | |
id: 'amberweinberg', | |
count: 1, | |
enableLinks: true, | |
ignoreReplies: true, | |
clearContents: true, | |
template: '"%text%" <a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a>' | |
}); |
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
$(document).ready(function(){ | |
$("#whatwedo").click(function() { | |
if ( $('#whatwedoSlider').is(':hidden') ) { | |
$("#whatwedoSlider").show("slide", { direction: "left" }, "slow"); | |
$("#whatwedo a").addClass('active'); | |
} else { | |
$("#whatwedoSlider").hide("slide", { direction: "left" }, "slow"); | |
$("#whatwedo a").removeClass('active'); | |
} | |
}); |
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
var c = Titanium.Network.createHTTPClient(); | |
c.onload = function() | |
{ | |
var f= Titanium.Filesystem.getFile("xhr.png"); | |
f.write(this.responseData); | |
Titanium.Media.saveToPhotoGallery(f.url); | |
}; | |
// open the client | |
c.open('GET','http://www.appcelerator.com/wp-content/uploads/2009/06/titanium_desk.png'); |
OlderNewer