Skip to content

Instantly share code, notes, and snippets.

View mattacular's full-sized avatar

Matt Stills mattacular

  • Atlanta
View GitHub Profile
@mattacular
mattacular / Exercise #1: Closures and IIFE.markdown
Created November 7, 2015 19:21
Exercise #1: Closures and IIFE
@mattacular
mattacular / gist:5844063
Created June 23, 2013 06:44
Grunt pattern to name dest after source
'sass': {
dist: {
// this pattern will recurse through Grunt project directory and look for folders called 'sass'
// it then looks inside the 'sass' folder for any files with extensive '*.scss' and converts them
// to a CSS file named the same except located in '../css/*.css'
files: grunt.file.expandMapping(['**/sass/*.scss'], 'css', {
rename: function (dest, matched) {
return matched.replace(/\/sass\//, '/' + dest + '/').replace(/\.scss$/, '.css');
}
})