Skip to content

Instantly share code, notes, and snippets.

View detectkeys.php
function translateKeypress($string) {
switch ($string) {
case "\033[A":
return "UP";
case "\033[B":
return "DOWN";
case "\033[C":
return "RIGHT";
philipnorton42 / Config Merge
Last active Dec 2, 2018
A stand alone script that can be used to compare and copy configuration from two different sub-sites into a default configuration.
View Config Merge
require './vendor/autoload.php';
// Set up the directories needed.
$parentDirectory = 'config/siteone';
$siblingDirectory = 'config/sitetwo';
$destinationDirectory = 'config/default';
View Googl.php
* Googl
* For more information on this file and how to use the class please visit
* PHP version 5