Skip to content

Instantly share code, notes, and snippets.

View christurnertv's full-sized avatar

Chris Turner christurnertv

View GitHub Profile
<?php
var_dump($_GET);
var_dump($_POST);
// delete from todo_table where id = ?
$todoList = [
'take out the trash',
# make sure path is set properly
export PATH=/usr/local/bin:$PATH
# shortcuts to edit and reload bash profile
alias ebp="vim ~/.bash_profile"
alias rbp="source ~/.bash_profile"
# shortcut to edit hosts file
alias ehf="sudo vim /etc/hosts"
@christurnertv
christurnertv / TimeShift.php
Created July 6, 2013 02:25
PHP Class for handling time zone conversions.
<?php
class TimeShift {
public static $zones = array(
"America/New_York" => "Eastern",
"America/Chicago" => "Central",
"America/Denver" => "Mountain",
"America/Phoenix" => "Arizona",
"America/Los_Angeles" => "Pacific",