Demo to accompany: http://www.sitepoint.com/interactive-video-showcase-video-api/
Forked from Simon Codrington's Pen Video API Interactive Showcase.
A Pen by Dermot McGuire on CodePen.
Demo to accompany: http://www.sitepoint.com/interactive-video-showcase-video-api/
Forked from Simon Codrington's Pen Video API Interactive Showcase.
A Pen by Dermot McGuire on CodePen.
Built with http://tridiv.com
A Pen by Dermot McGuire on CodePen.
<form action="/"> | |
<legend>A Sample Form Legend</legend> | |
<label for="name">Name: </label> | |
<input type="text" value="Name" name="Name" /> | |
<label for="email">Email: </label> | |
<input type="email" value="Email" name="Email" /> |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
basic CSS template for A4 print
Forked from rafaelcastrocouto's Pen A4 CSS page template.
A Pen by Dermot McGuire on CodePen.
// Show all custom fields associated with each post. | |
// From http://wpsnipp.com/index.php/functions-php/show-absolutely-custom-fields-post/ | |
add_action( 'all_admin_notices', 'wpsnipp_show_all_custom_fields' );function wpsnipp_show_all_custom_fields() { if ( isset( $_GET['post'] ) ) { $post_id = absint( $_GET['post'] ); ?> <div id="message" class="updated"> <h3>All post meta:</h3> <xmp><?php print_r( get_post_meta( $post_id ) ); ?></xmp> </div> <?php }} |
// http://frozenrockets.nl/labs/parallax/ | |
// Magic parallax mixins | |
@mixin parallax-init($perspective: null, $element: null, $parallax-ios: null) { | |
$perspective: if($perspective != null, $perspective, toolkit-get('parallax perspective')); | |
$element: if($element != null, $element, toolkit-get('parallax element')); | |
$parallax-ios: if($parallax-ios != null, $parallax-ios, toolkit-get('parallax ios')); | |
@if $element == 'body' { | |
@at-root { |
// Change Wordpress default user role names | |
// http://wpsnipp.com/index.php/functions-php/change-default-role-names-administrator-editor-author-contributor-subscriber/ | |
function wps_change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); $wp_roles->roles['contributor']['name'] = 'Owner'; $wp_roles->role_names['contributor'] = 'Owner';}add_action('init', 'wps_change_role_name'); |