Skip to content

Instantly share code, notes, and snippets.

View EricYue2012's full-sized avatar

Eric Yue EricYue2012

  • Sydney
View GitHub Profile
@EricYue2012
EricYue2012 / php_remove_query_string_key
Created November 14, 2013 03:44
Remove specified key from url question string
function remove_url_key($key){
$base_uri = $_SERVER['QUERY_STRING'];
$_new_uri = array();
if(!isset($_GET[$key]))
{
$q_string = $base_uri;
}else
{
foreach($_GET as $uri=>$val)
{
@EricYue2012
EricYue2012 / 0_reuse_code.js
Created November 14, 2013 03:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@EricYue2012
EricYue2012 / gist:7366890
Created November 8, 2013 06:07
PHP : Age Calculator based on Birth Date
test