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
###Модуль для обращения к AD | |
import-module activedirectory | |
import-module New-SWRandomPassword | |
###Модуль, который при запуске скрипта спрашивает имя пользователя(логин), у которого должен поменяться пароль | |
###$userset = Read-Host "Введите название группы:" | |
$userset = "All-Users" | |
###массив, в котором храняться логины пользователей(меняем SMS на название вашей ГРУППЫ из AD) |
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
var fileInput = $('input[type=file]'), | |
button = $('#upload'); | |
button.on('click', function(){ | |
// Access the files property, which holds | |
// an array with the selected files | |
var files = fileInput.prop('files'); | |
// No file was chosen! | |
if(files.length == 0) { | |
alert('Please choose a file to upload!'); | |
return false; |
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
$('p.descr').attr('unselectable', 'on') | |
.css('user-select', 'none') | |
.on('selectstart', false); |
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(){ | |
$(document).on("",function(e){ | |
e.preventDefault(); | |
}); | |
}); |
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 | |
function human_plural_form($number, $titles = array('комментарий', 'комментария', 'комментариев')) | |
{ | |
$cases = array(2, 0, 1, 1, 1, 2); | |
return $number . " " . $titles[($number % 100 > 4 && $number % 100 < 20) ? 2 : $cases[min($number % 10, 5)]]; | |
} |
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
var start = new Date(); | |
for (var i = 0; i < 10000000; i++) var test = head.glasses; | |
alert(new Date() - start); | |
var start = new Date(); | |
for (var i = 0; i < 10000000; i++) var test = pockets.glasses; | |
alert(new Date() - start); |
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
// price range | |
jQuery('#slider-range').slider({ | |
range: true, | |
min: 0, | |
max: 3500, | |
values: [ 100, 500 ], | |
slide: function( event, ui ) { | |
jQuery('#from').val( String(ui.values[0]).replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 ')); | |
jQuery('#to').val( String(ui.values[1]).replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 ')); | |
jQuery('.left_val').html( String(ui.values[0]).replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$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
jQuery('.products_wrapper .content_product:lt(4)').show(); | |
var items = 8; | |
var shown = 4; | |
jQuery('#loadMore').click(function (event) { | |
event.preventDefault(); | |
shown = jQuery('.products_wrapper .content_product:visible').size()+5; | |
if(shown< items) { | |
jQuery('.products_wrapper .content_product:lt('+shown+')').show(); | |
} else { |