Skip to content

Instantly share code, notes, and snippets.

View dudesl's full-sized avatar

Santiago Barchetta dudesl

  • Entrepreneaur
  • San Luis, Argentina
  • 09:29 (UTC -03:00)
View GitHub Profile
@dudesl
dudesl / PULL_REQUEST_TEMPLATE.md
Created July 13, 2018 17:43
Github PR Template

PULL REQUEST

Descripción del cambio

[Completar con el detalle del cambio]

Capturas

[Agregá capturas del cambio antes y después]

Que tipo de PR es?

@dudesl
dudesl / gist:72529cb6861f83a7322d8b890b3a4849
Created December 28, 2017 12:56
Pegadas 200 Wrapper Frontend
http://api.mercadopago.com/mpcx/shipping][Caller_Id: 252001352][Site: MLB][Status_Response: 200][Payment_Id: 3218408962][Shipping_Id: 26930331006][Shipping_Status: shipped][Shipping_Substatus: null]
http://api.mercadopago.com/mpcx/shipping/3220915636][Caller_Id: 196130290][Site: MLB][Status_Response: 200][Payment_Id: 3220915636][Shipping_Id: 26931374657][Shipping_Status: shipped][Shipping_Substatus: null]
http://api.mercadopago.com/mpcx/accreditation/3275080199][Payment_Id: 3275080199][Caller_Id: 291687717][Site: MCO][Payment_Status: cancelled][Payment_Status_Detail: by_payer][Reason: cancelled_by_payer][Problem_Id: 0][Payment_Method_Id: efecty][Status_Response: 200][Accredited: false]
http://api.mercadopago.com/mpcx/accreditation/3283955787][Payment_Id: 3283955787][Caller_Id: 60168685][Site: MLB][Payment_Status: refunded][Payment_Status_Detail: refunded][Reason: refunded_refunded][Problem_Id: 35][Payment_Method_Id: bolbradesco][Status_Response: 200][Accredited: true][Movement_Url: http://www.mercadopago.c
@dudesl
dudesl / gist:bb6a8dcaa52fcb2fb4965b82bd2fa848
Created June 15, 2017 03:39 — forked from johnantoni/gist:07df65898456ace4307d5bb6cbdc7f51
Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X

This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.

This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)

Xcode

Make sure you have the latest version of XCode installed. Available from the Mac App Store.

Install the Xcode Command Line Tools:

xcode-select --install

@dudesl
dudesl / gist:1d24901eb46086d65def5eace6052c6e
Created April 11, 2017 20:59
nordic i18n json config
{
"app": "i18n-demo",
"srcPath": "app"
}
<form class="card-form">
<!-- Card number -->
<div class="card-form__field">
<label for="cardNumber">Número de tarjeta</label>
<input id="cardNumber" type="text" data-checkout="cardNumber">
</div>
<!-- Payment method id -->
<div class="card-form__field">
<select id="paymentMethodId" name="paymentMethodId" data-checkout="paymentMethodId"></select>
// Versión compilada de estilos en ./web-app/build/css
gulp.task('cssBuild', function() {
Object.keys(bundles.css).forEach(function(bundle) {
// console.log(collection);
console.log(bundle);
console.log(bundles.css[bundle]);
return gulp.src(bundles.css[bundle])
.pipe($.concat(bundle + '.css'))
.pipe($.replace('../images','../assets'))
.pipe($.replace('../css/assets','../assets'))
$('#streetNumber').on('input', function(event){
var targetValue = event.target.value,
pattern = /\D/g;
event.target.value = targetValue.replace(pattern, '');
})
def generateHtmlTag = { attrs->
def browser = request.getHeader("user-agent") ?: 'MSIE 7.0'
def cssClass = "no-js"
if(browser.contains('MSIE 7.0')){
cssClass = "no-js ie7"
}
else if(browser.contains('MSIE 8.0')){
cssClass = "no-js ie8"
}
else if(browser.contains('MSIE 9.0')){
$("#summaryCol").html(_summaryModel.template({
"summary": {
"coupon": {
"status": "available",
"coupon_amount": 10,
"statusDetail": "Por mercadopago"
},
"payments": [
{
"transactionAmount": 10,
@dudesl
dudesl / gist:6a3b9f27645d38dd6c53
Last active August 29, 2015 14:08
Print de un elemento específico
$('#print').on("click", function () {
printVoucher()
});
function printVoucher(){
var instructionVoucher = document.getElementById("paperTicketInstructions");
var print = window;
print.document.write(instructionVoucher.innerHTML);
// print.document.close();
// print.focus();