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
import Foundation | |
public class Log { | |
private enum LogType: Int, CustomStringConvertible { | |
public var description: String { | |
switch self { | |
case .verbose: | |
return "[VERBOSE]" | |
case .info: | |
return "[INFO]" |
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
/** | |
* Check emoji from string | |
* | |
* @return bool if existed emoji in string | |
*/ | |
function checkEmoji($str) | |
{ | |
$regexEmoticons = '/[\x{1F600}-\x{1F64F}]/u'; | |
preg_match($regexEmoticons, $str, $matches_emo); | |
if (!empty($matches_emo[0])) { |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
) | |
func main() { |