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
// Refer https://github.com/kkdai/linebot-video-gcp for more detail. | |
// Must use "apiv1p1beta1" version to enable support on Chinese and MP3 | |
speech "cloud.google.com/go/speech/apiv1p1beta1" //v1p1beta1 | |
speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" //v1p1beta1 | |
func (c *ClientUploader) SpeachToText() (error, string) { | |
ctx := context.Background() |
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 | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 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 | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 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 | |
@session_start(); | |
unset($_SESSION['NAMA_USER']); | |
$_SESSION['intentos'] = 0; | |
if(isset($_SESSION['NAMA_USER'])) | |
{ | |
header("location:index.php"); | |
} | |
?> | |
<!DOCTYPE html> |
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 | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 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 | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 0; |