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
| try { | |
| doc = app.activeDocument; | |
| if (doc == null) | |
| { | |
| throw "Something is wrong with the current active document. Make sure it's a valid PSD file."; | |
| } | |
| var fileName = prompt("Enter file name please", doc.name); |
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
| #!/bin/bash | |
| USER='root' | |
| PASSWORD='qwerty' | |
| # function 1 | |
| function send_message_to_ip { | |
| IP=$1 | |
| COUNT=$(ping -c 2 $IP | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }') | |
| if [ $COUNT -eq 0 ] |
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 | |
| /** | |
| * Distance | |
| * | |
| * @return distance betweeb two points in meters | |
| */ | |
| public function distance($lat1,$long1,$lat2,$long2) | |
| { | |
| $greatCircleRadius = 6372795; | |
NewerOlder