Skip to content

Instantly share code, notes, and snippets.

View dudesl's full-sized avatar

Santiago Barchetta dudesl

  • Entrepreneaur
  • San Luis, Argentina
  • 09:19 (UTC -03:00)
View GitHub Profile
@dudesl
dudesl / SassMeister-input-HTML.html
Created September 23, 2014 20:03
Generated by SassMeister.com.
<div class="promo-app">
<p class="promo-app__p">
<strong>¡Pagá y enviá dinero desde tu celular!</strong>
Descargá gratis la aplicación de MercadoPago
</p>
<a href="" class="promo-app__logo">PlayStore</a>
</div>
/*lato-v10.scss*/
// @import 'weights/300';
// @import 'weights/400';
@import 'weights/700';
@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();
$("#summaryCol").html(_summaryModel.template({
"summary": {
"coupon": {
"status": "available",
"coupon_amount": 10,
"statusDetail": "Por mercadopago"
},
"payments": [
{
"transactionAmount": 10,
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')){
$('#streetNumber').on('input', function(event){
var targetValue = event.target.value,
pattern = /\D/g;
event.target.value = targetValue.replace(pattern, '');
})
// 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'))
<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>
@dudesl
dudesl / gist:1d24901eb46086d65def5eace6052c6e
Created April 11, 2017 20:59
nordic i18n json config
{
"app": "i18n-demo",
"srcPath": "app"
}
@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