Skip to content

Instantly share code, notes, and snippets.

View albertobraschi's full-sized avatar

Alberto Braschi albertobraschi

View GitHub Profile
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
06/2016 OR 08/2018 737 7373
@albertobraschi
albertobraschi / facebook-wca-standard-events.html
Created November 3, 2016 21:43 — forked from danielmcclure/facebook-wca-standard-events.html
Sample Facebook Standard Events for New Facebook WCA (Website Custom Audience) Pixel
<!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '{{facebook pixel}}');
fbq('track', 'PageView');
</script>
@albertobraschi
albertobraschi / PagSeguroParcelamento.php
Created December 16, 2016 15:54 — forked from lucasff/PagSeguroParcelamento.php
PagSeguro Cálculo de Parcelamento por Coeficiente
<?php
/**
* @author Lucas Freitas <lucas@lucasfreitas.com.br
* @license MIT
* @package PagSeguro
* @category eCommerce, Loja Virtual, Pagamentos, PagSeguro
*/
class Pagseguro {
@albertobraschi
albertobraschi / font-awesome-form-elements.css
Created December 24, 2016 00:52 — forked from pom-pom/font-awesome-form-elements.css
Font Awesome Radio Buttons and Checkboxes
/*Custom Radio Buttons and Checkboxes using Font Awesome*/
input[type=radio],
input[type='checkbox'] {
display: none;
}
input[type=radio] + label {
display: block;
}
input[type='checkbox'] + label:before,
var oscheckout = new OSCheckout();
function buscar_end() {
oscheckout.brazilZipcodevalid('80630000'.value,'<?php echo $this->getUrl('onestepcheckout/index/brazilzipcode'); ?>','customer');
}
///////////////////
OSCheckout = Class.create();
OSCheckout.prototype = {
<?php
$wsdl = 'https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl';
$client = new SoapClient($wsdl);
//Dolar Compra
$result = $client->getUltimoValorVO(10813);
$cotacao = sprintf( '<td>%s</td>', number_format( $result->ultimoValor->valor, 4, ',', '.' ) );
<ul class="list-unstyled">
<li>
<!--<a target="_blank" href="https://www.magentocommerce.com/products/downloads/magento/downloadFile/file_id/517/file_category/210/store_id/1/form_key/Ppyy4QcgxlSkYVHi" data-patchid="517" data-catid="210"><i class="glyphicon glyphicon-download-alt"></i> <strong>SUPEE-1533</strong>: SUPEE-1533 - Magento-CE-v1.8.x-1.9.x (0.01 MB)</a>-->
<i class="glyphicon glyphicon-download-alt"></i>
<strong class="">SUPEE-1533</strong>: SUPEE-1533 - Magento-CE-v1.8.x-1.9.x (0.01 MB) </li>
<li>
<!--<a target="_blank" href="https://www.magentocommerce.com/products/downloads/magento/downloadFile/file_id/527/file_category/235/store_id/1/form_key/Ppyy4QcgxlSkYVHi" data-patchid="527" data-catid="235"><i class="glyphicon glyphicon-download-alt"></i> <strong>SUPEE-3941</strong>: Magento-CE-v1.8.0.0-1.9.0.1 (0.03 MB)</a>-->
<i class="glyphicon glyphicon-download-alt"></i>
<strong class="">SUPEE-3941</strong>: Magento-CE-v1.8.0.0-1.9.0.1 (0.03 MB) </li>
<li>
@albertobraschi
albertobraschi / java_linux
Created February 21, 2018 18:58 — forked from brunorozendo/java_linux
Java in memory Linux
---------------
Configurar Java
---------------
sudo mkdir /opt/jdk
mkdir /opt/jdk/jdk8
mkdir /opt/jdk/jdk7
mkdir /opt/jdk/jdk6
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
<?php
$loginId = Mage::getSingleton('customer/session')->isLoggedIn();
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
$getGroupId = Mage::helper('marketplace')->getGroupId();
$customer = Mage::getSingleton("customer/session")->getCustomer();
$customer_status = $customer->getCustomerstatus();
$fb_page = Mage::getStoreConfig('marketplace/marketplace/facebook_page');
$twitter_page = Mage::getStoreConfig('marketplace/marketplace/twitter_page');
$marketplaceActivate = Mage::getStoreConfig('marketplace/marketplace/activate');
/**