Skip to content

Instantly share code, notes, and snippets.

Steve vrdriver

Block or report user

Report or block vrdriver

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:692c794ac904fa2709d5fdd827735da2
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Country Map Example</title>
<link rel="stylesheet" href="" type="text/css">
View gist:ddc0ba5cd248098febc560b5ceb1b70b
To process the following Billboard XML from the RCS Zetta radio playout system (as outputted through a MC v15 XML schema
using glue) in PHP, I do a conversion trick to make it actually usable in the XML processor.
Firstly, I pre-process all of the XML like this:
// dirty hack to fix the naming of xml fields.
$rawXML = str_replace("l:Link", "l_Link", $rawXML);
$rawXML = str_replace("s:Album", "s_Album", $rawXML);
$rawXML = str_replace("s:Song", "s_Song", $rawXML);
$rawXML = str_replace("t:Spot", "t_Spot", $rawXML);
View gist:7211c5faf8180599c1e68df1c3bf14a4
This will change a string of text link from (for example):
<a href="">Cool link</a>
// Just exports the URL as text - with no link.
vrdriver / app.compentent.ts
Created Apr 29, 2018
An Ionic Cordova AngularJS back button working on the TABS example
View app.compentent.ts
import { Component, ViewChild } from '@angular/core';
import { App, Platform, AlertController } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { TabsPage } from '../pages/tabs/tabs';
import { WelcomePage } from '../pages/welcome/welcome';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
template: `<ion-nav [root]="rootPage"></ion-nav>`
View gist:929b000135419a57452e6dda7506ec82
* 20170805 Added a few lines to stop a Refresh of a page from showing errors.
* This is a PHP library that handles calling reCAPTCHA.
* - Documentation and latest version
* - Get a reCAPTCHA API Key
vrdriver / timezone.php
Last active Jan 7, 2018 — forked from Xeoncross/timezone.php
The perfect TimeZone selectbox list for PHP 5.3+
View timezone.php
$regions = array(
'Africa' => DateTimeZone::AFRICA,
'America' => DateTimeZone::AMERICA,
'Antarctica' => DateTimeZone::ANTARCTICA,
'Asia' => DateTimeZone::ASIA,
'Atlantic' => DateTimeZone::ATLANTIC,
'Australia' => DateTimeZone::AUSTRALIA,
'Europe' => DateTimeZone::EUROPE,
'Indian' => DateTimeZone::INDIAN,
vrdriver / mysql_backup_import.php
Created Apr 8, 2017 — forked from aufa/mysql_backup_import.php
PHP function to backup and import database using MYSQLI
View mysql_backup_import.php
* @author awan < nawa (at) yahoo (dot) com >
* Function to build SQL /Importing SQL DATA
You can’t perform that action at this time.