Skip to content

Instantly share code, notes, and snippets.

View alialo's full-sized avatar

Alan Longstaff alialo

View GitHub Profile
// Current code:
<?php $tags = get_tags();
if ($tags) {
foreach ($tags as $tag) {
echo '<li><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </li> ';
}
} ?>
// What I found:
@alialo
alialo / gist:3184630
Created July 26, 2012 21:24
CSS Button
.button {
width: 120px;
display: block;
margin: 28px auto;
padding: 6px 10px;
background: transparent;
cursor: pointer;
outline: none;
border: 1px solid #999;
text-shadow: 0 1px 1px #fff;
@alialo
alialo / _config.yml
Created March 30, 2012 21:45
Twitter Bootstrap style pagination in Jekyll
paginate: 10
@alialo
alialo / Left Pane
Created March 14, 2012 08:15
Set window sizes to 76% and 24% of desktop size
tell application "Finder"
set {a, b, c, d} to bounds of window of desktop -- the bounds of the desktop
tell application "System Events" to tell (process 1 whose frontmost is true)
set position of window 1 to {a, b}
set size of window 1 to {((c / 100) * 76), d}
end tell
end tell