- Grunt
- grunt-stylus + Stylus
- grunt-imgo + imgo
- grunt-sweet (not published yet) + Sweet
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
| // Нету чейнинга | |
| this.$el.find('.js-search_city-suggest'); | |
| // Чейнинг без присваивания | |
| this.$el | |
| .find('.js-search_city-suggest') | |
| .typeahead(); | |
| // Чейнинг с присваиванием в переменную | |
| var city = this.$el |
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
| // функция для определения модели Айпада | |
| function detectIPadVersion(callback, undefined) { | |
| if ('ondevicemotion' in window) { | |
| window.addEventListener('devicemotion', function self(event) { | |
| if (~navigator.platform.indexOf('iPad')) { | |
| var version = event.acceleration ? (window.devicePixelRatio === 2) + 2 : 1; | |
| } | |
| window.removeEventListener('devicemotion', self); | |
| callback(version); |
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
| function isRetina(){ | |
| return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
| ('matchMedia' in window && matchMedia("(min-resolution:144dpi)").matches)) | |
| } |
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
| { | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store", | |
| ".gitkeep", | |
| "dump.rdb" | |
| ], |
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
| ::-webkit-scrollbar{ | |
| height:16px; | |
| overflow:visible; | |
| width:16px; | |
| } | |
| ::-webkit-scrollbar-button{ | |
| height:0; | |
| width:0; | |
| } |
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
| {* 1) Ссылка на страничку с карточкой товара *} | |
| <a href="{"products.view?product_id=`$product.product_id`"|fn_url}">Ссылка на карточку товара</a> | |
| {* 2) Тоже самое что и первая ссылка, но оформлено в виде подключаемого извне шаблона. Там много интересного *} | |
| {include file="buttons/button.tpl" but_href="products.view?product_id=`$product.product_id`" but_text=$lang.view_details but_role="submit"} | |
| {** | |
| * 3) Ссылка на быстрый просмотр карточки товара | |
| * Если вызывается AJAX, то возвращает шаблон views/products/quick_view.tpl | |
| * иначе редиректит на ссылку вида 1) |
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 | |
| # Sync Homebrew installations between Macs via Dropbox | |
| # | |
| BREW="/usr/local/bin/brew" | |
| # first get local settings | |
| echo "Reading local settings ..." | |
| rm -f /tmp/brew-sync.* |
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
| // Stick all your icons in a subfolder in your images folder. Put retina versions in a subfolder of that called "@2x". | |
| $sprites: sprite-map("NAME_OF_SUBFOLDER/*.png"); | |
| $sprites2x: sprite-map("NAME_OF_SUBFOLDER/@2x/*.png"); | |
| // stolen from 37signals | |
| @mixin retina-media() { | |
| @media (min--moz-device-pixel-ratio: 1.3), | |
| (-webkit-min-device-pixel-ratio: 1.3), | |
| (min-device-pixel-ratio: 1.3), | |
| (min-resolution: 1.3dppx) { |