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
| /* | |
| snapToPixel.jsx | |
| Adobe Illustrator script. | |
| Moves any selected objects to the nearest pixel. | |
| */ | |
| if ( documents.length > 0 ) { | |
| var sourceDoc = activeDocument; |
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
| doctype html | |
| <!--[if IE 8]> <html class="lt-ie10 lt-ie9" lang="ru"> <![endif]--> | |
| <!--[if IE 9]> <html class="lt-ie10" lang="ru"> <![endif]--> | |
| <!--[if gt IE 9]><!--> <html lang="ru"> <!--<![endif]--> | |
| head | |
| meta( charset="utf-8" ) | |
| meta( http-equiv="X-UA-Compatible" content="IE=edge" ) | |
| //- Uncomment it if your site is responsive | |
| //- meta( name="viewport" content="width=device-width, initial-scale=1" ) | |
| title Site title |
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
| #!/bin/bash | |
| # Originaly: https://github.com/jkaving/intellij-colors-solarized/blob/master/buildjar.sh | |
| # Create the "colors" directory for the scheme files | |
| # and copy all passed file there | |
| mkdir colors | |
| cp $* colors | |
| # Create an empty "IntelliJ IDEA Global Settings" file, | |
| # needed to be able to import the JAR using "Import Settings..." |
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
| var selectOptionsAsJSON = function(selectEl) { | |
| var result = [], options = selectEl.options; | |
| for (var i=0; i < options.length; i++) { | |
| result.push({"text":options[i].text, "value":options[i].value}); | |
| } | |
| window.prompt('Done. Copy text:', JSON.stringify(result)); | |
| return result; | |
| } |
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
| # Make position 'fixed' useful for horizontal scroll | |
| $header = $('.header') | |
| $(window).scroll(()-> | |
| $header.css('left', "-#{ $(window).scrollLeft() }px") | |
| ) |
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
| // Widget documentation http://www.jivosite.ru/javascript-api | |
| function jivo_onLoadCallback() { | |
| $('#online-consultant').addClass('enabled').click(function() { | |
| jivo_api.open(); | |
| }); | |
| } | |
| // scss |
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
| desc 'Create block stylesheet file and kitchen page' | |
| task :create_block, [:name] do |t, args| | |
| block_name = args[:name] | |
| if block_name == nil | |
| print "Block name is required \n" | |
| else | |
| # TODO Check name for convention validity ('my-super-block', not 'mySuper_block') | |
| # Create stylesheet file | |
| style_file_path = "#{Rails.root}/app/assets/stylesheets/blocks/_#{block_name}.scss" |
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
| blocks = ['nav', 'ul', 'editor-text', 'title', 'btn-lnk', 'ic-a', 'grid', 'form'] | |
| get 'kitchen' => 'kitchen#index' | |
| blocks.each do |bname| | |
| fname = bname.gsub('-', '_') | |
| get "kitchen/#{bname}" => "kitchen##{fname}" | |
| end |
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
| doctype html | |
| html | |
| head | |
| meta( charset='utf-8' ) | |
| meta( name='viewport' content='initial-scale=1' ) | |
| <!--[if gt IE 8]><!--> | |
| = stylesheet_link_tag 'fonts-woff', :media => 'screen' | |
| <!--<![endif]--><!--[if lte IE 8]> | |
| = stylesheet_link_tag 'fonts-eot', :media => 'screen' |
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
| .list-group | |
| - Dir.foreach('app/assets/images/ic-a') do |fname| | |
| - next if fname == '.' || fname == '..' || !fname.include?('.') | |
| - fname_without_ext = fname[/.*(?=\..+$)/] | |
| li.list-group-item | |
| p .ic-a.ic-a_#{fname_without_ext} | |
| i( class="ic-a ic-a_#{fname_without_ext}" ) |