Skip to content

Instantly share code, notes, and snippets.

View heatxsink's full-sized avatar
👽
They exist.

Nick Granado heatxsink

👽
They exist.
View GitHub Profile
@heatxsink
heatxsink / gist:582170
Created September 16, 2010 09:20
cookies.php
<?php
function validate_var($var) {
$return_value = false;
if (isset($var) && strlen(trim($var)) > 0) {
$return_value = true;
}
return $return_value;
}
<?php
/*
*
* Copyright (c) 2010 Nicholas Granado
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
<?php
require_once('../UrlRewriter.class.php');
$test = UrlRewriter::Transform("/static/js/hello.js");
printf("<h1>%s</h1>", $test);
putenv("ASSETS_HOSTNAME=");
putenv("ASSETS_VERSION=");
$test = UrlRewriter::Transform("/static/js/hello.js");