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
.box-shadow (@string) { | |
-webkit-box-shadow: @string; | |
-moz-box-shadow: @string; | |
box-shadow: @string; | |
} | |
.border-radius (@radius: 2px) { | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
border-radius: @radius; |
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
<!DOCTYPE html> | |
<html> | |
<!-- http://www.ajaxbestiary.com/2011/12/19/css-and-mobile-device-orientation/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+AjaxBestiary+%28Ajax+Bestiary%29 --> | |
<!-- @see bcooling.com.au/testbed/orientation.html--> | |
<head> | |
<style> | |
html, body { | |
height:100%; min-height:100%; margin:0; padding:0; | |
} | |
.landscape, .portrait { |
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 /* Main loop ------------------------------------------*/ ?> | |
<?php if (have_posts()) while (have_posts()): the_post(); ?> | |
<h1><?php the_title(); ?></h1> | |
<?php // get_template_part( 'content', 'home' ); ?> | |
<?php endwhile; ?> | |
<?php /* Simple alter main loop ------------------------------------------*/ ?> | |
<?php query_posts('posts_per_page=1&post_type=locations'); ?> |
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
#!/bin/bash | |
# Shell script to open various conf files related to developing for the web | |
# Make sure no space after \ or infinite loop of sublime text opening will occur | |
#-------------------------------------------------------- | |
subl -n \ | |
/etc/hosts \ | |
/etc/apache2/httpd.conf \ | |
/etc/apache2/extra/httpd-vhosts.conf \ | |
/Users/dnadigital/.bash_profile \ | |
/Users/dnadigital/bin/confs \ |
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
# Ben Cooling's mac osx bash profile | |
#--------------------------------- | |
# Environment Variables | |
#--------------------------------- | |
export PS1="\h \w:" | |
export NOW=$(date +"%Y-%m-%d") | |
export EDITOR="subl -w" |
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
javascript:(function(){ var el= document.createElement("script"); el.src= 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; document.head.insertBefore(el, document.head.firstChild); })() |
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
/* List child categories | |
---------------------------------------------------------------------------------------------------------*/ | |
<?php | |
$args = array('parent' => get_query_var('cat'), 'hide_empty' => false); | |
$categories=get_categories($args); | |
foreach($categories as $category) { | |
echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> '; | |
echo '<p> Description:'. $category->description . '</p>'; | |
echo '<p> Post Count: '. $category->count . '</p>'; } | |
?> |
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
/* | |
* jQuery plugin boilerplate | |
* By Ben Cooling | |
* 2013 | |
* | |
* Description: | |
* Internal operations available as public api | |
* Construct & Deconstruct methods | |
* Working with Ajax responses as promise objects | |
* |
OlderNewer