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
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Pause length="10"/> | |
<Say voice="alice" language="en-gb"> | |
Southwest #2426 (B737) departed Port Columbus Intl (KCMH) at 01:30PM EDT enroute to KMDW (Chicago Midway Intl) for an estimated arrival at 01:20PM CDT | |
Destination (Chicago Midway Intl / MDW): Gate B19 | |
</Say> | |
</Response> |
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 | |
// 'after_setup_theme', with 100, so it is the absolute last thing to load | |
add_action('after_setup_theme', 'customize_parent_includes', 100); | |
function customize_parent_includes() { | |
//again, set this to 100 so it is the last thing loaded | |
add_action('wp_enqueue_scripts', 'bootstrap_custom', 100); | |
} |
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
Array | |
( | |
[long_desc] => "Southwest #442 arrived at Minneapolis/St Paul Intl (KMSP) at 09:20AM CDT from KMKE (General Mitchell Intl) Destination (Minneapolis/St Paul Intl / MSP): Gate H8" | |
[short_desc] => "SWA442 arrived at KMSP from KMKE" | |
[summary] => "SWA442 arrived at KMSP from KMKE" | |
[eventcode] => "arrival" | |
[alert_id] => "6993590" | |
[flight] => Array | |
( | |
[ident] => "SWA442" |
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 | |
//Get the body of the request | |
$body = file_get_contents("php://input"); | |
if(!empty($body)){ | |
$alertData = json_decode($body,TRUE); | |
//Save to database... or other stuff | |
}else{ | |
throw new Exception("Invalid Request"); |
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 | |
return array( | |
'version' => '0.9.3', | |
'cluster.messagebus.debug' => false, | |
'cluster.messagebus.enabled' => false, | |
'cluster.messagebus.sns.region' => '', | |
'cluster.messagebus.sns.api_key' => '', | |
'cluster.messagebus.sns.api_secret' => '', | |
'cluster.messagebus.sns.topic_arn' => '', |
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 | |
//get the class | |
require_once('/path/to/flightaware/FlightAware.class.php'); | |
$flightaware = new FlightAware(); | |
/* Optionally, you can skip the config.ini and pass an array into the constructor | |
* $flightaware = new FlightAware( | |
* array("username"=>"","apiKey"=>"","requestURL"=>"flightxml.flightaware.com/json/FlightXML2/") | |
* ); |
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 | |
$select = $db->select()->from( | |
'roi_misc', | |
array('miscId','accountCode','savings','other','remarks') | |
)->joinUsing( | |
'roi_misc_presets', | |
'presetId', | |
array('bucket','presetName') | |
); |
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 | |
$db = Zend_Db_Table::getDefaultAdapter(); | |
$adapter = new Zend_Paginator_Adapter_DbSelect( | |
$db->select() | |
->from('readings') | |
->where("verified = 'p'") | |
); | |
$rowCount = $db->fetchRow("SELECT COUNT(*) AS total FROM readings WHERE verified = 'p'"); | |
$adapter->setRowCount( |
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
[extensions] | |
# enable color extension | |
color = | |
[color] | |
# configure colors for each possible hg status | |
status.modified = blue bold | |
status.added = green bold | |
status.removed = red bold | |
status.deleted = cyan bold |
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
.custom-background .site-header-banner {background-color:#F2F0ED !IMPORTANT;} |