Skip to content

Instantly share code, notes, and snippets.

View AndersonFirmino's full-sized avatar
🐍
📜 🎼 🎮 🐧 🦆

Anderson Araujo AndersonFirmino

🐍
📜 🎼 🎮 🐧 🦆
View GitHub Profile
@AndersonFirmino
AndersonFirmino / jquery.getUrlVars.js
Created December 30, 2015 16:48
Pega variáveis da url com jQuery
$.extend({
getUrlVars: function() {
var vars = [],
hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).spli
t('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
login url
<?php echo Mage::getUrl('customer/account/login'); ?>
logout url
<?php echo Mage::getUrl('customer/account/logout'); ?>
My Account url
<?php echo Mage::getUrl('customer/account'); ?>
Register url
@AndersonFirmino
AndersonFirmino / index.html
Last active December 15, 2015 13:08 — forked from anonymous/index.html
JS BinHow to style a select// source https://jsbin.com/neyola/edit?html,css,output
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="How to style a select">
<meta charset="utf-8">
<title>Style a select</title>
</head>
<body>
<select>
<option>CoffeeScript</option>
/* Non-responsive overrides for Bootstrap 3
*
* Utilize the following CSS to disable the responsive-ness of the container,
* grid system, and navbar.
*/
/* Reset the container */
.container {
max-width: none !important;
width: 970px;