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 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 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
// Avoid `console` errors in browsers that lack a console. | |
if (!(window.console && console.log)) { | |
(function() { | |
var noop = function() {}; | |
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn']; | |
var length = methods.length; | |
var console = window.console = {}; | |
while (length--) { | |
console[methods[length]] = noop; | |
} |
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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.0.min.js"><\/script>')</script> |
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 = Philipp Andreychev | |
[core] | |
editor = vim | |
[alias] | |
unstage = reset HEAD -- | |
co = checkout | |
br = branch | |
ci = commit | |
stat = status |
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
events: { | |
'click .b-header-notification_button': 'setLayout', | |
'hover .b-right_menu-item': 'showPopup', | |
'mouseleave .b-right_menu-item': 'hidePopup', | |
'click .b-right_menu-link': 'setOpened', | |
'click .b-right_menu-link': 'selectEl' | |
}, | |
events: { | |
'click .b-header-notification_button': 'setLayout', |
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
{ | |
"directory": "scripts/bower" | |
} |
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
initSaveOnEnter: function() { | |
this.popup | |
.off('keyup.saveOnEnter') | |
.on('keyup.saveOnEnter', function(event) { | |
var target = event.target, | |
targetEl = $(target); | |
if (event.which == 13 && target.tagName != 'TEXTAREA' && !targetEl.hasClass('ui-autocomplete-input') && !targetEl.hasClass('js-save_on_enter')) { | |
this.popup | |
.find('.js-submit_button') |
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
#!/bin/sh | |
echo "\nStarting Grunt tests" | |
# Lint catalog js files with grunt.js | |
grunt catalog | |
RETVAL=$? | |
[ $RETVAL -eq 0 ] && echo Success | |
[ $RETVAL -ne 0 ] && echo Failure |
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
.smallcapitals { | |
font-size: 0.875em; | |
letter-spacing: 0.15em; | |
margin-right: -0.15em; | |
} | |
.classiccapitals { | |
font-variant: small-caps; | |
} |
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
if skype.dispute.length >= 10.minutes | |
call(participants) | |
end |
OlderNewer