Skip to content

Instantly share code, notes, and snippets.

View dnlmzw's full-sized avatar

Daniel J. Mierzwinski dnlmzw

View GitHub Profile
module.exports = (grunt) ->
# Package
# =======
pkg = require './package.json'
folders =
src: 'mpg_src'
dev: 'mpg'
dist: 'mpg_dist'
@dnlmzw
dnlmzw / Alias
Created January 4, 2014 21:22
Create symbolic link for MAMP "htdocs"-folder to current Terminal window path. Finally open localhost:8888. Shortcut through "setdocs" with alias.
alias setdocs="~/Dropbox/Scripts/set_htdocs_open_localhost.sh"
// // ########################
// // ########################
// // ########################
// // ########################
// GALLERY SHORTCODE OVERWRITE
// Bind to header
add_action('wp_head', 'header_init');
// Remove default shortcode
remove_shortcode('gallery', 'gallery_shortcode');
jst:
options:
processName: (filename) ->
return filename.replace('<%= BASE_PATH %>/templates/','').replace('.jst','')
compile:
expand: true
cwd: '<%= BASE_PATH %>/templates/'
src: ['**/*.jst']
dest: '<%= DEVELOPMENT_PATH %>/scripts/templates/'
ext: '.js'