Skip to content

Instantly share code, notes, and snippets.

View roryashfordbentley's full-sized avatar
🌭
Wranglin'

Rory Ashford-Bentley roryashfordbentley

🌭
Wranglin'
View GitHub Profile
@roryashfordbentley
roryashfordbentley / SassMeister-input.scss
Created September 29, 2014 12:49
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
/**
* libsass list manipulation problem
* I am using the following code as a crude example.
* the real world application I am trying to achieve
* is providing grid system setup via a single $args array.
*/
@roryashfordbentley
roryashfordbentley / wordpress-assets.php
Last active August 29, 2015 14:05
Wordpress assets function
/**
* Functions to shorten calling assets
*/
function get_assets($subdir){
return get_stylesheet_directory_uri() .'/assets'.($subdir ? '/'. $subdir : '');
}
function assets($subdir){
echo get_stylesheet_directory_uri() .'/assets'.($subdir ? '/'. $subdir : '');