This file contains 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
# Install kicker on osx: sudo gem install kicker --source http://gemcutter.org\ | |
# | |
# Place a `.kick' file with this code in the root of your project, which contains the file to watch. | |
# Then start running kicker from the project root: $ kicker | |
FILE_TO_WATCH = 'mockup-1.psd' | |
counter = nil | |
if File.exist?('output') |
This file contains 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
# Install kicker on osx: sudo gem install kicker --source http://gemcutter.org\ | |
# | |
# Place a `.kick' file with this code in the root of your project, which contains the file to watch. | |
# Then start running kicker from the project root: $ kicker | |
FILE_TO_WATCH = 'mockup-1.psd' | |
counter = nil | |
if File.exist?('output') |
This file contains 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
# Install kicker on osx: sudo gem install kicker --source http://gemcutter.org | |
# | |
# Place a `.kick' file with this code in the root of your project, which contains the file to watch. | |
# Then start running kicker from the project root: $ kicker | |
module Mockup | |
FILE_TO_WATCH = 'mockup.psd' | |
FOLDER = 'output' | |
def self.last_exported_version |
This file contains 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
=calc($property, $expression) | |
#{$property}: -moz-calc(#{$expression}) | |
#{$property}: -o-calc(#{$expression}) | |
#{$property}: -webkit-calc(#{$expression}) | |
#{$property}: calc(#{$expression}) |
This file contains 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
Verifying that +jonnotie is my openname (Bitcoin username). https://onename.io/jonnotie |
This file contains 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
My Awesome Sketch | |
First State | |
Some event -> Second State | |
Second State |
This file contains 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
// Add a prefix to a string of classNames. | |
// Example: prefixClasses("text-red-500 bg-blue-500", "hover") => ["hover:text-red-500", "hover:bg-blue-500"] | |
export function prefixClasses(classes: string, prefix: string): string[] { | |
const classNames = classes.split(" "); | |
return classNames.map((className) => `${prefix}:${className}`); | |
} | |
// Add "dark:" to a string of classNames. | |
// Example: darkClasses("text-red-500 bg-blue-500") => ["dark:text-red-500", "dark:bg-blue-500"] | |
export function darkClasses(classes: string): string[] { |