This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
<?php | |
// Visual composer get terms on dropdown params | |
if( !function_exists('vcdd_get_terms') ){ | |
function vcdd_get_terms( $taxonomy = 'category' ){ | |
$get_categories = get_categories( array( | |
'taxonomy' => $taxonomy, | |
) ); | |
foreach ( $get_categories as $category ) { | |
$categories[] = [ $category->term_id => $category->name ]; | |
} |
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
// define route like this | |
Route::get('single/{id}/{any}',"BaseController@Single_Items")->name('item.single'); | |
//make a function like below in your helper file | |
function Replace($data) { | |
$data = str_replace("'", "", $data); | |
$data = str_replace("!", "", $data); | |
$data = str_replace("@", "", $data); | |
$data = str_replace("#", "", $data); |
from jira import JIRA | |
import pandas as pd | |
import pdb | |
from collections import defaultdict | |
import datetime | |
import pprint | |
class ImportJiraAnalyticsData: |
<?php | |
namespace App\Commands\Database; | |
use Illuminate\Support\ServiceProvider; | |
class BindDatabaseServiceProvider extends ServiceProvider | |
{ | |
public function boot() | |
{ |
We have been moved for better. Look Here for an Updated Version. People are also contributing there for making it more beautiful. See you there!!!
<?php | |
/************************************************************************* | |
* Get File Information | |
*/ | |
// Assuming these come from some data source in your app | |
$s3FileKey = 's3/key/path/to/file.ext'; | |
$fileName = 'file.ext'; |
Use this doc as a reference to map out the sequence of events your app will receive based on Customer type(s) involved in the transfer as well as where the funds are coming from and going to (bank or balance). The following transfer scenarios are covered in this doc:
Transfer scenario 1 - Source: Verified Customer
bank Destination: Verified Customer
bank.
Transfer scenario 2 - Source: Verified Customer
bank Destination: Unverified Customer
bank.
Transfer scenario 3 - Source: Unverified Customer
bank Destination: Verified Customer
bank.
Both success and failure cases will be shown as well as what occurs in the event of a bank transfer failure.
**General recommend
# import | |
import os | |
from os import path, listdir as list_dir, rename as move | |
from os.path import isdir as is_dir, isfile as is_file | |
from pprint import pprint | |
import shutil | |
# global variables | |
#================== |
<?php namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Str; | |
class MakeAll extends Command | |
{ | |
/** | |
* The name and signature of the console command. | |
* |