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
composer dump-autoload |
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 OpenAI from 'openai'; | |
import dotenv from 'dotenv'; | |
import fs from 'fs'; | |
import slugify from 'slugify'; | |
// Load the API key from the .env file | |
dotenv.config(); | |
const openai = new OpenAI({ | |
apiKey: process.env.OPENAI_API_KEY, |
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 | |
use Elementor\Controls_Manager; | |
use Elementor\Element_Base; | |
use Elementor\Core\Files\CSS\Post; | |
use Elementor\Core\DynamicTags\Dynamic_CSS; | |
// Exit if accessed directly | |
if (!defined('ABSPATH')) { | |
exit; |
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 | |
require_once getenv('HOME') . '/freemius-php-sdk/freemius/FreemiusBase.php'; | |
require_once getenv('HOME') . '/freemius-php-sdk/freemius/Freemius.php'; | |
define( 'FS__API_SCOPE', getenv( 'SCOPE' ) ); | |
define( 'FS__API_DEV_ID', getenv( 'DEV_ID' ) ); | |
define( 'FS__API_PUBLIC_KEY', getenv( 'PUBLIC_KEY' ) ); | |
define( 'FS__API_SECRET_KEY', getenv('SECRET_KEY' ) ); | |
define( 'FS__PLUGIN_ID', getenv('PLUGIN_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
=ArrayFormula | |
( | |
ArrayFormula(VLOOKUP(CEILING(ROW(OFFSET(INDIRECT("A1"),,,COUNTA(A2:A)*COUNTA(B2:B)))/COUNTA(B2:B)) , {ROW(A2:A)-row(A1),A2:A} , 2, )) | |
& | |
ArrayFormula(VLOOKUP(MOD(ROW(OFFSET(INDIRECT("A1"),,,COUNTA(A2:A)*COUNTA(B2:B)))-1,COUNTA(B2:B))+1 , {ROW(B2:B)-ROW(B1) , B2:B} , 2 ,)) | |
& | |
C$2 | |
) |
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
function domainLookup(domain) { | |
var result = ""; | |
if (domain == "") { | |
return; | |
} | |
// Function to lookup available domains using rdap | |
httpResult = UrlFetchApp.fetch("https://rdap.verisign.com/com/v1/domain/"+domain,{muteHttpExceptions: true}); | |
if (httpResult.getResponseCode() == 404) { |
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
$widget->add_control( | |
'ap_google_sheet_list', | |
[ | |
'label' => __( 'Google Sheet', 'elementor-pro' ), | |
'type' => Controls_Manager::SELECT, | |
'options' => [], | |
'render_type' => 'none', | |
'conditions' => [ | |
'relation' => 'or', | |
'terms' => [ |
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
$ResourceLocation = "Global" | |
$ResourceName = "outingbay.com" #user's domain (constoso.com) | |
$ResourceGroupName = "outingbay" # This should be an existing resource group in your Azure subscription | |
$PropertiesObject = @{ | |
'Consent' = @{ | |
'AgreementKeys' = @("DNPA","DNTA"); | |
'AgreedBy' = '10.5.50.11'; #user's IP address (192.168.1.1) | |
'AgreedAt' = '2019-11-15 10:17:42Z'; #roughly the current time (2017-13-05T12:25:30.6850404Z) | |
}; | |
'authCode' = '<The code you received from other registrar>'; #code obtained from their current provider in order to transfer out the domain |
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 | |
$end_point = 'https://accounts.google.com/o/oauth2/v2/auth'; | |
$client_id = 'YOUR_ID'; | |
$client_secret = 'YOUR_SECRET'; | |
$redirect_uri = 'http://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]'; // http://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"] or urn:ietf:wg:oauth:2.0:oob | |
$scope = 'https://www.googleapis.com/auth/drive.metadata.readonly'; | |
$authUrl = $end_point.'?'.http_build_query([ |
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
/* First we need to extend main profile tabs */ | |
add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 ); | |
function add_custom_profile_tab( $tabs ) { | |
$tabs['mycustomtab'] = array( | |
'name' => 'My custom tab', | |
'icon' => 'um-faicon-comments', | |
); | |
NewerOlder