Skip to content

Instantly share code, notes, and snippets.

View brunomertins's full-sized avatar

Bruno Mertins brunomertins

View GitHub Profile
@brunomertins
brunomertins / Bypass
Last active December 12, 2015 00:18
Bypass PHP
<?php
/* set the cookie */
setcookie("bypass", "valor", time() + 3600);
header ("Location: http://www.m.yourwebsite.com/");
?>
@brunomertins
brunomertins / RSSLink
Created January 31, 2013 12:52
RSSLinkCSS
@brunomertins
brunomertins / BrunoMertinsVcard
Created January 31, 2013 12:27
Vcard Bruno Mertins
<h2>Contact</h2>
<ul>
<div id="contact">
<div id="hcard-Bruno-Mertins" class="vcard">
<a class="url fn n" href="http://www.brunomertins.com">
<span class="given-name">Bruno</span>
<span class="family-name">Mertins</span></a><br />
<div class="email">bruno 'at' brunomertins.com</div>
<div>skype: <strong>brunomertins</strong></div>
<div class="adr">
@brunomertins
brunomertins / HTML5SimpleStructure
Last active December 12, 2015 00:18
Simple Page Structure in HTML5
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>My Content</p>
</body>
</html>
@brunomertins
brunomertins / Resultados de Busqueda
Created March 28, 2015 14:59
Resultados de Busqueda
//* Customize search text
add_filter( 'genesis_search_title_text', 'search_title_text' );
function search_title_text() {
return 'Resultados de b&uacute;squeda: ';
}
@brunomertins
brunomertins / Colums Example
Created November 21, 2014 15:47
Colums Example
<div class="one-half first"><strong>Gmail for business</strong>
Custom made email addresses: (your_name@your_company.com).</div>
<div class="one-half"><strong>Google Docs</strong>
Share online documents, spreadsheets and presentations.</div>
<div class="one-half first"><strong>Google Calendar</strong>
Your meetings and company events in one place.</div>
<div class="one-half"><strong>Google Sites</strong>
Create your own intranet and wikis without programing.</div>
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1");
google.load("jqueryui", "1");
</script>
<script>
$(document).ready(function()
{
$('body').hide().fadeIn(500);
});
@brunomertins
brunomertins / GA Comments Event Tracking
Last active August 29, 2015 14:03
Google Analytics Comments Event Tracking
<input name="submit" type="submit" onClick="_gaq.push(['_trackEvent', 'Forms', 'Submit', 'BlogComments']);" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />