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
/* | |
By Osvaldas Valutis, www.osvaldas.info | |
Available for use under the MIT License | |
*/ | |
;( function ( document, window, index ) { | |
var s = document.body || document.documentElement, s = s.style, prefixAnimation = '', prefixTransition = ''; | |
if( s.WebkitAnimation == '' ) prefixAnimation = '-webkit-'; | |
if( s.MozAnimation == '' ) prefixAnimation = '-moz-'; |
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
// пример модуля | |
Core.register('module-name', function(sandbox) { | |
return { | |
init: function() { | |
// constrictor | |
if (sandbox.testSomething()) { | |
console.log('yes, you can!'); | |
} | |
}, |
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
# http://editorconfig.org | |
# парсер не будет искать другие конфиги родительских папках | |
root = true | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf |
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
[user] | |
name = user | |
email = user@example.com | |
[http] | |
proxy = http://127.0.0.1:8080 | |
[https] | |
proxy = https://127.0.0.1:8080 | |
[filter "hawser"] | |
clean = git hawser clean %f | |
smudge = git hawser smudge %f |
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
.ps-container { | |
position: relative; | |
-ms-touch-action: none; | |
overflow: hidden !important; | |
} | |
.ps-container.ps-in-scrolling { | |
pointer-events: none; | |
} | |
.ps-container.ps-active-x > .ps-scrollbar-x-rail, |
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
<input type="text" id="a-text"> | |
+ | |
<input type="text" id="b-text"> | |
= | |
<input type="text" id="c-text" readonly> |
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
var Observer = (function () { | |
'use strict'; | |
var exports = {}; | |
var events = {}, | |
splitter = /\s+/; | |
var on = function(types, fn, context) { | |
var type; |
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
/* Синхронизация */ | |
git checkout gh-pages | |
git rebase master | |
git push origin gh-pages | |
git checkout master | |
/* Deploy из папки dist */ | |
git subtree push --prefix dist origin gh-pages |
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
{ | |
"name": "npm-tasks-boilerplate", | |
"version": "0.0.1", | |
"description": "", | |
"author": "Monochromer <monochromer@mail.ru>", | |
"scripts": { | |
"clean": "rm -rf build/", | |
"server": "browser-sync start --server \"build\" --files 'build/**/*.*' --directory", | |
"stylus": "stylus src/styles/main.styl -o build/css --include-css", | |
"prefix": "postcss -u autoprefixer --autoprefixer.browsers \"> 1%\" -r build/css/*", |
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
;(function(Element) { | |
// matches polyfill | |
if (!Element.prototype.matches) { | |
Element.prototype.matches = Element.prototype.matchesSelector || | |
Element.prototype.webkitMatchesSelector || | |
Element.prototype.mozMatchesSelector || | |
Element.prototype.msMatchesSelector || | |
function matches(selector) { |