Skip to content

Instantly share code, notes, and snippets.

View fleeting's full-sized avatar
🐢
As productive as this turtle.

James Fleeting fleeting

🐢
As productive as this turtle.
View GitHub Profile
<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>'
});
$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 />';
<?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>
/* 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;
.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;
<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;
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
$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++;