This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If you prefer the indented syntax, you might want to regenerate this | |
| # project again passing --syntax sass, or you can uncomment this: | |
| # preferred_syntax = :sass | |
| # and then run: | |
| # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass | |
| preferred_syntax = :scss | |
| require 'fileutils' | |
| on_stylesheet_saved do |file| | |
| if File.exists?(file) && File.basename(file) == "style.css" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://phrogz.net/SVG/convert_path_to_polygon.xhtml | |
| function pathToPolygon(path,samples){ | |
| if (!samples) samples = 0; | |
| var doc = path.ownerDocument; | |
| var poly = doc.createElementNS('http://www.w3.org/2000/svg','polygon'); | |
| // Put all path segments in a queue | |
| for (var segs=[],s=path.pathSegList,i=s.numberOfItems-1;i>=0;--i) segs[i] = s.getItem(i); | |
| var segments = segs.concat(); |