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
| # Quick and dirty transliteration method. | |
| # Uses the Streamlined System. | |
| # Don't forget to use "-Encoding UTF8" when working with files. | |
| $string = $string -replace 'а','a' -replace 'б','b' -replace 'в','v' -replace 'г','g' -replace 'д','d' -replace 'е','e' -replace 'ж','zh' -replace 'з','z' -replace 'и','i' -replace 'й','y' -replace 'к','k' -replace 'л','l' -replace 'м','m' -replace 'н','n' -replace 'о','o' -replace 'п','p' -replace 'р','r' -replace 'с','s' -replace 'т','t' -replace 'у','u' -replace 'ф','f' -replace 'х','h' -replace 'ц','ts' -replace 'ч','ch' -replace 'ш','sh' -replace 'щ','sht' -replace 'ъ','a' -replace 'ь','y' -replace 'ю','yu' -replace 'я','ya' |
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 loc = window.location.href+''; | |
| if (loc.indexOf('http://')==0){ | |
| window.location.href = loc.replace('http://','https://'); | |
| } |
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 SendEmail { | |
| param([string]$emailSubject, [string]$emailBody) | |
| $recipientEmail = "john.smith@example.com" | |
| $senderName = "John Smith" | |
| $senderEmail = "noreply@example.com" | |
| $serverSMTP = "mail.example.com" | |
| Send-MailMessage -To $recipientEmail -From "$senderName <$senderEmail>" -Subject $emailSubject -Body $emailBody -BodyAsHtml -SmtpServer $serverSMTP | |
| } |
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
| // Place outside of the ViewController class. | |
| override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { | |
| view.endEditing(true) | |
| } |
NewerOlder