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 | |
/* | |
* Template Name: Template-return-png | |
* Description: A Page Template with a darker design. | |
*/ | |
$database64 = ''; | |
if(isset($_GET['id'])){ | |
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 | |
//every page need login | |
//not page of /free | |
//http://myweb.com/free | |
//http://myweb.com/free/page1 | |
//http://myweb.com/free/page2.... | |
function _nok_force_user_login() { | |
global $wp; |
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 TextUtil { | |
public static function sanitize($title) { | |
$replacement = '-'; | |
$map = array(); | |
$quotedReplacement = preg_quote($replacement, '/'); | |
$default = array( | |
'/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ|À|Á|Ạ|Ả|Ã|Â|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ|å/' => 'a', | |
'/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ|È|É|Ẹ|Ẻ|Ẽ|Ê|Ề|Ế|Ệ|Ể|Ễ|ë/' => 'e', | |
'/ì|í|ị|ỉ|ĩ|Ì|Í|Ị|Ỉ|Ĩ|î/' => 'i', |
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
vietnam | |
translate.google.com/translate_tts?ie=UTF-8&q=%C4%83n%20n%C3%AAn%20l%C3%A0m%20ra&tl=vi&total=1&idx=0&textlen=15&tk=350535.255567&client=webapp&prev=input | |
eng | |
translate.google.com/translate_tts?ie=UTF-8&q=This%20is%20a%20test.&tl=en&total=1&idx=0&textlen=15&tk=350535.255567&client=webapp&prev=input |
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
#include <WiFi.h> | |
//#include <ESP8266WiFi.h> | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
Serial.println("Hello, ESP32!"); | |
printHardwareInfo(); | |
printBoardName(); | |
printMacIp(); |
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
let idleTime = 0; | |
// Increment idle time every second | |
setInterval(timerIncrement, 1000); | |
// Reset idle time on mouse or keyboard event | |
$(document).on('mousemove keydown', function() { | |
idleTime = 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
<?php | |
$folderVersion = 'versions'; | |
$version = retunVersion($folderVersion); | |
$file_BIN = 'file.BIN'; | |
$link = 'http://localhost:801/test/upgrade/versions/'; | |
echo viewFileBin($link,$version, $file_BIN); | |
function viewFileBin($link,$version, $file_BIN){ |
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
active plugin | |
create new page with template Chau-Random A Title Post | |
access link of page | |
can find by categry slug https://mydomain.com/random/?catname=thanh-cong |
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 | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
$input = 'https://calendar.google.com/calendar/embed?src=a56ac6da1d0184b389b3f590ba25b686b1bc6580f5666b0c6ae63259b31cbb1b%40group.calendar.google.com&ctz=Asia%2FHo_Chi_Minh'; | |
$resl = builLink($input); |
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 | |
namespace App\Services; | |
use Illuminate\Filesystem\Filesystem; | |
class FileUploadChurkService extends BaseService | |
{ | |
public function __construct() | |
{ |
NewerOlder