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 logging | |
import sys | |
from llama_index import ( | |
download_loader, | |
GPTVectorStoreIndex, | |
LLMPredictor, | |
ServiceContext, | |
PromptHelper, | |
load_index_from_storage, | |
StorageContext |
This file has been truncated, but you can view the full file.
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
{ | |
"basePath": "/api_v3", | |
"definitions": { | |
"KalturaABCScreenersWatermarkCondition": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/KalturaCondition" | |
} | |
], | |
"properties": {}, |
This file has been truncated, but you can view the full file.
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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Kaltura Video Experience Cloud API", | |
"description": "Kaltura Media Services offers a feature-rich API for seamless integration of high-quality video streaming and management. It provides scalability, flexibility, and extensive customization options, empowering developers to build robust media-centric applications.", | |
"version": "19.4.0" | |
}, | |
"servers": [ | |
{ | |
"url": "https://cdnapi-ev.kaltura.com/api_v3" |
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 sys | |
import re | |
def merge_lines(srt_file): | |
# Read in the SRT file | |
with open(srt_file, 'r') as f: | |
srt = f.read() | |
# Merge consecutive lines in each caption block | |
merged_srt = re.sub(r'\d+\n(\d\d:\d\d:\d\d,\d+ --> \d\d:\d\d:\d\d,\d+\n)?(.*?\n\n)', lambda match: match.group(2).replace('\n', ' ') + '\n', srt, flags=re.S) |
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
<div style="position: relative; padding-bottom: 56.25%; padding-top: 25px; height: 0;"><iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://cdnapisec.kaltura.com/p/2539171/sp/253917100/embedIframeJs/uiconf_id/44037791/partner_id/2539171?iframeembed=true&playerId=kaltura_player_1556142794&entry_id=1_vqxvmjj6&flashvars[streamerType]=auto" width="560" height="400" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div> |
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 | |
set_time_limit(0); | |
ini_set('memory_limit', '2048M'); | |
error_reporting(E_ALL | E_STRICT); | |
ini_set('display_errors', 1); | |
date_default_timezone_set('Asia/Jerusalem'); // Make sure to set this to your desired timezone (https://www.php.net/manual/en/timezones.php) | |
const REPORT_SESSION_ATTENDANCE = 3009; | |
const REPORT_CERTIFICATE_OF_COMPLETION = 3010; | |
const REPORT_ADD_TO_CALENDAR = 3006; |
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
// IMPORTANT: This action will EMAIL the CSV file to the email defined in the user's email field. Be sure to set userId in the KS that belongs to a user object that has email field properly set to a valid email address | |
//initialize kaltura | |
$kConfig = new KalturaConfiguration($pid); | |
$kConfig->setServiceUrl('https://www.kaltura.com'); | |
$kConfig->setLogger($this); | |
$this->client = new KalturaClient($kConfig); | |
$this->ks = $this->client->session->start($secret, 'userIdToSendEmailWithCSV', SessionType::ADMIN, $pid, 86400, 'list:*,disableentitlement,*'); | |
$this->client->setKs($this->ks); |
This file has been truncated, but you can view the full file.
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
{ | |
"basePath": "/api_v3", | |
"definitions": { | |
"KalturaABCScreenersWatermarkCondition": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/KalturaCondition" | |
} | |
], | |
"properties": {}, |
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
#!/usr/bin/ruby | |
require 'kaltura' | |
include Kaltura | |
config = KalturaConfiguration.new() | |
config.service_url = 'https://www.kaltura.com' | |
client = KalturaClient.new(config); | |
parent_partner_id = # Your Kaltura Parent MultiAccount Partner ID (Kaltura Account ID) | |
login_id = #Your Kaltura Parent MultiAccount Admin Login Email |