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
//--------------------------------------------------------------Simpler Realization------------------------------------------------------------- | |
function extend(target) { | |
//if we do not have second argument (zero based) | |
if(!arguments[1]) { | |
//do nothing | |
return; | |
} | |
//initial arguments length | |
var initialArgLength = arguments.length; | |
for (var i=1, i <intialArgLength; i++ ){ |
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
₴ |
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
new-website -PhysicalPath "D:\work\testIISPS\" -Name "MySiteName" | |
# list of all available (added earlier) websites Get-Website | |
start-website MySiteName | |
#stop-website |
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
$host.ui.RawUI.WindowTitle = "ThisIsTextForPSTitle" |
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
$a = git ls-remote --exit-code https://github.com/designofhumanity/$ProjectName 2>&1 | |
if ($a.Exception) | |
# { | |
# $AnswerRepo =Read-Host -Prompt "Create repository on github? 1 - yes, 2 - no" | |
# If ($AnswerRepo -eq "1") { | |
# $result =Invoke-RestMethod -Headers $Headers -Uri https://api.github.com/user/repos -Body $Body -Method post | Format-Wide -Property clone_url -Column 1 | out-string | |
#..................................... and so on |
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
git status 2>&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
body, html { /*hack selectors*/ | |
height: 100%; /*hack value!!*/ | |
margin: 0px auto; /* delete margin also works margin: 0px; */ | |
padding: 0px auto; /*delete padding also works padding: 0px*/ | |
} | |
/**/ | |
.wrapper { | |
height: auto; /* These two lines were the key. */ | |
min-height: 100% | |
/*overflow: hidden;*/ /* Do not use this, it crops in small browsers. */ |
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
url = "https://translate.google.com/?en=en#en/ru/#{cased}" | |
# Shell.openExternal url | |
xmlHttp = new XMLHttpRequest() | |
xmlHttp.open( "GET", url, false ) | |
xmlHttp.onreadystatechange = -> | |
if this.readyState == 4 | |
parser = new DOMParser() | |
doc = parser.parseFromString(xmlHttp.responseText, "text/html") | |
resultbox = doc.getElementById("result_box") | |
alert(resultbox.innerHTML) |
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
sometEventHandler (e) { | |
console.log(e.target === this); // true | |
//... | |
} |