Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
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
| module.exports = { | |
| theme: { | |
| extend: {}, | |
| screens: { | |
| xl: { max: "1279px" }, | |
| // => @media (max-width: 1279px) { ... } | |
| lg: { max: "1023px" }, | |
| // => @media (max-width: 1023px) { ... } |
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
| { | |
| "title": "FC660 like MacBook Pro", | |
| "rules": [ | |
| { | |
| "description": "Esc Modifiers to Backtick", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "escape", |
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
| WebGl courses + tutorials | |
| --------------------------------------- | |
| 1. Great GLSL course | |
| https://thebookofshaders.com/ | |
| https://thebookofshaders.com/?lan=ru (russian language) | |
| 2. WebGl basics | |
| https://webglfundamentals.org | |
| https://webglfundamentals.org/webgl/lessons/ru (russian language) |
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
| import { TimelineMax, TweenMax, Power2, Back } from 'gsap' | |
| let curtainsOpenTimeline = () => { | |
| return new TimelineMax() | |
| .set('.curtains', { transformOrigin: '0%' }) | |
| .fromTo('.curtains', 0.6, { scaleX: 0 }, { scaleX: 1, ease: Power2.easeInOut }) | |
| .fromTo('.curtains-logo', 0.3, { x: '-100%', autoAlpha: 0 }, { x: '-50%', autoAlpha: 1, ease: Power2.easeInOut }, '-=0.45') | |
| } | |
| let curtainsCloseTimeline = () => { |
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
| :root { | |
| --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
| --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |
| --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); | |
| --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); | |
| --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); | |
| --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335); | |
| --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); | |
| --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 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
| Анализаторы кода JS: | |
| -------------------- | |
| JSLint - онлайн анализатор кода JS - http://www.jslint.com/ | |
| Просто вставьте в него свой код и он быстро проанализирует на предмет возможных проблем и ошибок. | |
| JSLint сканирует JavaScript код. Если он находит проблему, то возвращает сообщение с описанием и местонахождение в коде. | |
| Проблема это не обязательно ошибка синтаксиса, хотя часто так и есть. JSLint так-же обращает внимание на соглашения о кодировании а так же на проблемы в структуре. Он не доказывает что ваша программа работает верно, он просто предоставляет еще один взгляд на ваш код.” | |
| Сам скрипт - https://github.com/douglascrockford/JSLint/blob/master/jslint.js | |
| Фреймворк Vue.js: |
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
| <?php | |
| //настройки для коннекта к gifts | |
| $giftsLogin = '****_xmlexport'; | |
| $giftsPass = '****'; | |
| $giftsUrlProduct = "http://{$giftsLogin}:{$giftsPass}@api2.gifts.ru/export/v2/catalogue/product.xml"; | |
| $giftsUrlTree = "http://{$giftsLogin}:{$giftsPass}@api2.gifts.ru/export/v2/catalogue/tree.xml"; | |
| $giftsUrlStock = "http://{$giftsLogin}:{$giftsPass}@api2.gifts.ru/export/v2/catalogue/stock.xml"; | |
| $giftsUrlFilters = "http://{$giftsLogin}:{$giftsPass}@api2.gifts.ru/export/v2/catalogue/filters.xml"; | |
| $urlImages = 'http://files.gifts.ru/reviewer/'; |
http://maximilianhoffmann.com/posts/better-font-rendering-on-osx
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;Mobile Momentum Scrolling
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
| /* (320x480) iPhone (Original, 3G, 3GS) */ | |
| @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
| /* insert styles here */ | |
| } | |
| /* (320x480) Smartphone, Portrait */ | |
| @media only screen and (device-width: 320px) and (orientation: portrait) { | |
| /* insert styles here */ | |
| } | |
NewerOlder