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
var endpointUrl = 'wss://p2nfln7noe.execute-api.us-east-1.amazonaws.com/api/'; | |
var ws = new WebSocket(endpointUrl); | |
ws.onmessage = function(data) { | |
var event = JSON.parse(data); | |
if (event.type == 'SEARCH_RAG_START') { | |
//MOSTRAR LOADING | |
console.log("Message received..." + event.data); | |
} | |
if (event.type == 'SEARCH_RAG_RESULT') { | |
//MOSTRAR RESULTADOS |
This file has been truncated, but you can view the full file.
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
{ | |
"_id" : NumberInt(102), | |
"week" : NumberInt(22), | |
"year" : NumberInt(2025), | |
"eventsWeek" : [ | |
{ | |
"id_programacion" : NumberInt(780789), | |
"picture_grid" : { | |
"url" : "amores-que-matan", | |
"fid" : NumberInt(401753), |
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
{ | |
"_id" : ObjectId("66a17928e8cbf60f5b0a5f16"), | |
"nid" : NumberInt(140349), | |
"modtime" : ISODate("2024-07-24T21:59:04.000+0000"), | |
"noprerrolls" : "", | |
"nopublicidad" : false, | |
"stream" : NumberInt(0), | |
"estado" : NumberInt(1), | |
"version" : NumberInt(5), | |
"img" : { |
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
[{"id":"46970278","name":"Argentina - Canadá","date":"2024-06-21T00:00:00Z","Url":"https://www.betano.pe/match-odds/Argentina-Canada/46970278","zerorake":false,"teams":[{"id":"107255","name":"Argentina"},{"id":"106618","name":"Canadá"}],"leaguename":"Partidos","leagueid":"183731","regionname":"Copa America","regionid":"188650","market":[{"id":"1661661856","type":"MRES","name":"Resultado del partido","selections":[{"id":"4821000456","name":"1","oddsFormat":"decimal","formattedPrice":"1.40","originalFormattedPrice":"0.00","price":1.40,"originalPrice":0.00},{"id":"4821000457","name":"X","oddsFormat":"decimal","formattedPrice":"4.70","originalFormattedPrice":"0.00","price":4.70,"originalPrice":0.00},{"id":"4821000458","name":"2","oddsFormat":"decimal","formattedPrice":"8.25","originalFormattedPrice":"0.00","price":8.25,"originalPrice":0.00}]},{"id":"1661663179","type":"HCTG","name":"Total de Goles Más/Menos","selections":[{"id":"4821004573","name":"Más 0.5","oddsFormat":"decimal","formattedPrice":"1.05","origina |
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
db.getCollection("tg_vod").find({ | |
nid: 138313 | |
}).forEach(function(doc) { | |
if (doc.programaTemporada.length > 0) { | |
doc.programaTemporada[0].tid = doc.programaTemporada[0].tid.toLowerCase().replace(' ', '-'); | |
} | |
db.tg_vod.updateOne({_id: doc._id}, {$set: { | |
"programaTemporada.0": doc.programaTemporada[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
public function login_2fa() { | |
try { | |
//code... | |
$google2fa = new \PragmaRX\Google2FA\Google2FA(); | |
$credentials = request(['email', 'verification_code']); | |
$user = User::where('email', $credentials['email'])->first(); | |
$window = request('working_time', true) === false ? 5 : 0; | |
$valid = $google2fa->verifyKey($user->secret_2fa, $credentials['verification_code'], $window); | |
$status = $status2 = true; |
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
db.getCollection("an_compactov2").find({'source': 'youtube', 'media.id': null}).forEach(function (doc) { | |
if ( doc.portada_e && doc.portada_e.fid ) { | |
//print(doc.nid); | |
db.an_compactov2.updateOne({ | |
_id: doc._id | |
}, { | |
$set: { | |
"media.id": doc.portada_e.fid | |
} | |
}); |
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
{ | |
"_id" : ObjectId("595409c5defb38985c8b4567"), | |
"programaId" : "58ed0dea2e131cd07f8b4569", | |
"edicionId" : "2425886", | |
"fecha" : NumberLong(1498626000), | |
"fechaCreacion" : NumberLong(1498679749), | |
"fechaActualizacion" : NumberLong(1498685161), | |
"audio" : { | |
"lista" : [ | |
{ |
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
function noticia_grid_cropandresize() | |
{ | |
$url = variable_get('elementos_app', 0) . '/index.php/cropandresize/grid'; | |
$post = array(); | |
$post['apikey'] = '590ee43e919b1f4baa2125a424f03cd160ff8901'; | |
$post['base_name']= $_POST['base_name']; | |
$post['fid']= $_POST['fid']; | |
$post['fid_path']= $_POST['fid_path']; | |
$post['ext']= $_POST['ext']; | |
$post['left']= $_POST['left']; |
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
function site_api_send($url) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_USERAGENT, 'MD3'); | |
curl_setopt($ch, CURLOPT_URL, $url ); | |
curl_setopt($ch, CURLOPT_POST, 0); | |
// curl_setopt($ch, CURLOPT_POSTFIELDS, $data); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$result = curl_exec($ch); | |
curl_close ($ch); | |
$json = json_decode($response); |
NewerOlder