Skip to content

Instantly share code, notes, and snippets.

@bytefade
bytefade / index.html
Last active December 22, 2016 00:16 — forked from luanrm/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<p class="esg-click-to-play-video">Teste</p>
<p class="esg-click-to-play-video">Teste</p>
@bytefade
bytefade / random.js
Created December 21, 2016 19:40 — forked from luanrm/random.js
var cores = [
"#F44336",
"#E91E63",
"#9C27B0",
"#673AB7",
"#3F51B5",
"#2196F3",
"#03A9F4",
"#00BCD4",
"#009688",
<?php
// Get Base URI
$baseUri = str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname($_SERVER['SCRIPT_FILENAME']));
$http = str_replace(array('/', '\\'), '/', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . $baseUri . '/');
$catalog = explode('/', $http);
array_pop($catalog);
array_pop($catalog);
$catalog = implode('/', $catalog) . '/';