Skip to content

Instantly share code, notes, and snippets.

View etiennejcharles's full-sized avatar
🏠
Working from home

Etienne-Joseph Charles etiennejcharles

🏠
Working from home
  • Staples Business Advantage Canada
  • Montreal, QC
View GitHub Profile
# Usage:
# ruby concat.rb /path-to-compass-gem/frameworks/compass/stylesheets/_compass.scss > compass-all.scss
@seen = []
def concat(file)
File.foreach(file) do |line|
if line =~ /^\s?@import "(.+?)";/
import = $1
unless @seen.include?(import)