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
/* Mac OS X Lion avatar in CSS */ | |
body { | |
background: #67676a; | |
padding: 100px; | |
} | |
.avatar { | |
display: block; | |
position: relative; | |
width: 128px; |
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
.gist { | |
color: #000; | |
} | |
.gist div { | |
padding: 0; | |
margin: 0; | |
} | |
.gist .gist-file { |
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 | |
/** | |
* Function: Average | |
* Calculates average of values taken from custom fields out of a WordPress loop. Built of Jason ;) | |
* Author: Baki Goxhaj | |
*/ | |
function average( $post_no ); | |
$no = 0; | |
$query = new WP_Query('posts_per_page=' . $post_no ); while( $query->have_posts() ) : $query->the_posts(); | |