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 myObject () { | |
if ( !(this instanceof myObject) ) { | |
return new myObject(); | |
} | |
} |
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
angular.module("app", []).controller("ctrl", function($scope){ | |
$scope.options = [ | |
{value:'Option1', selected:true}, | |
{value:'Option2', selected:false} | |
]; | |
$scope.toggleAll = function() { | |
var toggleStatus = !$scope.isAllSelected; | |
angular.forEach($scope.options, function(itm){ itm.selected = toggleStatus; }); |
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
<!DOCTYPE html> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--[if lt IE 8]><html class="no-js ie ltie8 ltie9 ltie10" lang="ru"><![endif]--> | |
<!--[if IE 8]><html class="no-js ie ie8 ltie9 ltie10" lang="ru"><![endif]--> | |
<!--[if IE 9]><html class="no-js ie gtie8 ie9 ltie10" lang="ru"><![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--><html class="no-js" lang="ru"><!--><![endif]--> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta charset="utf-8"> |
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
.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
[user] | |
name = user | |
email = [email protected] | |
[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
<input type="text" id="a-text"> | |
+ | |
<input type="text" id="b-text"> | |
= | |
<input type="text" id="c-text" readonly> |