Skip to content

Instantly share code, notes, and snippets.

@kenkubiak
kenkubiak / icon.less
Created September 4, 2012 23:25
Icon/Sprite Module (after SMACSS) in LESS
/**
* Icon module.
*
* Class: icon, Prefix: icn-.
*
* https://home.ninginc.com/display/ENG/Yoko+Styleguide#YokoStyleguide-Icon
*
*/
.icon {
@kenkubiak
kenkubiak / Sprite.php
Created September 4, 2012 22:56
Building an SVG Sprite from SVG icon assets ... in PHP
<?php
/**
* Create an SVG sprite as a DOMDocument.
*/
class Sprite {
/**
* The URI for the SVG namespace.
*
<target name="jasmine" description="Run unit tests with Jasmine">
    <exec executable="${basedir}/tests/js/jasmine-reporters/test/phantomjs.runner.sh">
        <env key="DISPLAY" value=":0" />
        <arg line="${basedir}/tests/js/jasmine-reporters/test/JUnitRunner.html"/>
    </exec>
    <copy todir="${basedir}/build/test-results">
        <fileset dir="${basedir}/tests/js/jasmine-reporters/test">
            <include name="**/TEST*" />
        </fileset>