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 | |
$curURL = trim($_SERVER['REQUEST_URI'], '/'); | |
$arURLParts = explode('/', $_SERVER['REQUEST_URI']); | |
foreach($arURLParts as $urlPart) { | |
${$urlPart} = $urlPart; | |
switch ($urlPart) { | |
case 'hotels': | |
$hotelPage = (($_GET['brand'] == "excellence") ? false : true); | |
break; | |
case 'country': |
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 | |
function raise_array(array $arArray, $arKey) { | |
if(is_array($arArray[$arKey])) { | |
$arValues = $arArray[$arKey]; | |
foreach($arValues as $aValue) { | |
$arArray[] = $aValue; | |
} | |
unset($arArray[$arKey]); // Remove key'ed value. |
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 | |
function calcPPrice($iPrice, $iDPrice = 1) { | |
$iDiscounted = round($iPrice - ($iPrice / 100 * $iDPrice)); | |
return $iDiscounted - (10 - (9 - ($iDiscounted % 10))); | |
} | |
?> |
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 | |
/** | |
* Parses the build.properties used by Phing | |
* @author James <james@bluebaytravel.co.uk> | |
*/ | |
class Properties { | |
protected static $_instance = NULL; | |
public static $propFile = ""; |
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 | |
/** | |
* Bugify External Hook URL with Pushover. | |
* @author James Brooks <jbrooksuk@me.com> | |
*/ | |
if(!isset($_POST['payload'])) die('Error.'); | |
// You don't need to change this bit. |
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
#include <GUIConstants.au3> | |
$Struct = DllStructCreate("int cxLeftWidth;int cxRightWidth;int cyTopHeight;int cyBottomHeight;") | |
$sStruct = DllStructCreate("dword;int;ptr;int") | |
Global $MyArea[4] = [50, 50, 50, 50] | |
$GUI = GUICreate("Windows Vista DWM", 243, 243) | |
$Apply = GUICtrlCreateButton("Apply", 80, 104, 83, 25, 0) | |
$ICE = GUICtrlCreateButton("DWM Check", 80, 134, 83, 25, 0) |
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() { | |
var proxied = window.alert; | |
window.alert = function() { | |
return proxied.apply(this, arguments); | |
}; | |
})(); |
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
{ | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow.tmTheme", | |
"draw_white_space": "selection", | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".gitkeep", | |
".smb*" | |
], | |
"folder_exclude_patterns": |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+alt+n"], "command": "prompt_insert_nums" } | |
] |