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 request = require('request'); | |
const sfmc_auth_url = "https://________________.auth.marketingcloudapis.com"; | |
const sfmc_rest_url = "https://________________.rest.marketingcloudapis.com"; | |
var options_auth = { | |
'method': 'POST', | |
'url': sfmc_auth_url+'/v2/token', | |
'headers': { | |
'Content-Type': 'application/json' |
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 | |
$dir = __DIR__.'/address-txt-files/'; | |
$txts = []; | |
$filenameAndLastMod = []; | |
$gpt_token = ''; | |
// Open a directory, and read its contents | |
if (is_dir($dir)) { |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Popup Testing</title> | |
<style> |
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
/* ------ Start Of jsHelp ------ */ | |
var jsHelp=new Boolean(true); | |
var doc=document; | |
var doc_body=((document.documentElement)?document.documentElement:document.body); | |
/* IE Detection */ var ieDetected=new Boolean((navigator.appName=="Microsoft Internet Explorer")?true:false); | |
/* ------ Start Of "not natively available" ------ */ | |
// isArray |
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
// NodeJS moudles | |
var MongoClient = require('mongodb').MongoClient; | |
var current_DB = 'tworld_sf_2'; | |
var mongoDB_url = 'mongodb://localhost:27017/'+current_DB; | |
var assert = require('assert'); | |
var request = require('request'); | |
var Promise = require("bluebird"); |
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
print "Welcome To Tic-Tac-Toe\n" | |
""" | |
THE BOARD | |
|{0}|{1}|{2}| | |
|{3}|{4}|{5}| | |
|{6}|{7}|{8}| | |
""" | |
winningCombinations = [[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]; |
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 | |
add_filter('template_redirect', function() { | |
global $wp_query; | |
if(! empty($wp_query->query_vars["xml_listings_sitemap"]) ) { | |
$wp_query->is_404 = false; | |
header('Content-type: application/xml; charset=utf-8'); |
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 miniSlider_data=new Object(); | |
function changeSlideOnMiniSlider(eleID, slideNum) { | |
if (eleID!=undefined && slideNum!=undefined && eleID in miniSlider_data) { | |
var aMiniSliders_data=miniSlider_data[(eleID)]; | |
if (slideNum=="next" || slideNum=="back") { | |
for (es=0; es < aMiniSliders_data['slides'].length; es++) { | |
if (! new RegExp("( |)(hideSlide)", "g").test(aMiniSliders_data['slides'][es].className)) { | |
eval("var slideNum="+ ((slideNum=="next")?((es==(aMiniSliders_data['slides'].length-1))?"0":"es+1"):((es==0)?(aMiniSliders_data['slides'].length-1):"es-1"))); |
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 ga_event(category, action, label, value) { | |
if (typeof gtag !== 'undefined') { | |
gtag('event', action, { | |
'event_category': category, | |
'event_label': label, | |
'event_value': value, | |
'event_callback': function() { | |
console.log('ga event callback ('+ action +' - '+ category +' - '+ label +')'); |
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 get_header(); ?> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-10 col-lg-offset-1"> | |
<div class="row"> | |
<section class="col col-md-9 col-main" role="main"> | |
<?php if (have_posts()): ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
NewerOlder