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
#!/bin/bash | |
# Function to print message in red | |
print_red() { | |
echo -e "\033[0;31m$1\033[0m" | |
} | |
# Function to print message in green | |
print_green() { | |
echo -e "\033[0;32m$1\033[0m" |
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
// JavaScript | |
/[\u{0531}-\u{0556}\u{0561}-\u{0587}]{1,}/gu | |
// PHP | |
/[\p{Armenian}]{1,}/g |
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
<?php | |
/** | |
* Class Phone | |
*/ | |
class Phone { | |
/** | |
* Phone number | |
* |
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
<?php | |
/* | |
Author: Petr Bondarenko | |
E-mail: [email protected] | |
Date: 31 May 2012 | |
License: BSD | |
Description: Class for create UNIX-daemon | |
*/ | |
class DaemonException extends Exception {} |