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
function processSummerNote($content) | |
{ | |
if (empty($content)) { | |
return $content; | |
} | |
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'); | |
$dom = new \DOMDocument('1.0', 'utf-8'); | |
libxml_use_internal_errors(true); |
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
function objectToArray($object) | |
{ | |
if(!is_object($object) && !is_array($object)) { | |
return $object; | |
} | |
return array_map('objectToArray', (array) $object); | |
} |
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
var campaign = 'evaly-earthquake-july-2020-99c4e2'; // set campaign slug | |
var pageUrl = `https://evaly.com.bd/campaign/${campaign}`; | |
var apiUrl = `https://api.evaly.com.bd/core/campaigns/public/${campaign}/shops`; | |
var delay = 5000; // ms | |
var showNotification = (msg, shopUrl = null) => { | |
var notification = new Notification('Evaly', { | |
icon: 'https://evaly.com.bd/static/images/icons/android-chrome-144x144.png', | |
body: msg, | |
}); |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Raihan | |
* Date: 10-Jul-17 | |
* Time: 12:48 AM | |
*/ | |
class CryptMcrypt{ | |
private $hash; | |
function __construct($hash){ |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Raihan | |
* Date: 10-Jul-17 | |
* Time: 4:37 AM | |
*/ | |
class CryptOpenssl{ | |
private $hash; | |
function __construct($hash){ |