Skip to content

Instantly share code, notes, and snippets.

View albertpeiro's full-sized avatar

Albert Peiró albertpeiro

View GitHub Profile
@albertpeiro
albertpeiro / gist:3329ad4307a089cc85e2a5c1be963b59
Created March 18, 2019 16:20
Demo Wednesday 20th March 2019
@channel Toby and I just went through the requirements for the Demo for Wednesday, and to bring clarity I just wrote them down for everyone’s understanding:
By *tomorrow Tuesday 19th March evening*, we need to have finalised and deployed all changes needed to *www.yourbrandcontacts.com*:
- SC Product catalogue with dummy pricing (done by Levan) :white_check_mark: DONE
- Enrolment one-time-order (done by Alec and Albert) :white_check_mark: DONE (without the feature-toggle it can be deployed to yourbrand)
- YourBrand Emails working (done by Aslak) :white_check_mark: DONE
- Visual changes such as YourBrandLogo images, plus other potential issues (we need a deployment to full extent of this) :construction_worker: NEEDS WORK
- (TBD, if possible) Hooked up to ISMP4 device (we’re not certain we can deliver this by Wednesday, Josh coordinating with Toby) :construction_worker: NEEDS WORK
- (TBD, if possible) Connecting Sam’s club QA SAP to the www.yourbrandcontacts.com demo deployment for feeding product catalogue an
@albertpeiro
albertpeiro / Generate AST from simple logic expression
Last active February 7, 2019 14:37
Takes a logic expression as a string. Returns an Abstract Syntax Tree (AST) that represents the logic expression entered, or throws an error if not syntactically correct.
/*
GENERATE AST
https://regexr.com/460ng
Valid input:
1
12
12 AND 22
12 AND 22 OR 33
12 AND (22 OR 33)
(1 AND 2) AND 3
@albertpeiro
albertpeiro / react-bootstrap-typeahead CSS
Created December 21, 2017 16:40
Fix react-bootstrap-typeahead with input-group on Bootstrap 4.0.0-beta.2
/* fixes react-bootstrap-typeahead
-------------------------------------------------- */
.input-group .rbt {
width:100%;
.rbt-input.form-control {
width: 100%;
@extend .border-primary;
// Fixes input-group not taking width
@albertpeiro
albertpeiro / Algomantic_pseudo
Created January 8, 2015 15:08
Algoritmo del comportamiento romántico
/*
* Algoritmo del comportamiento romántico (pseudocódigo)
* Pasos clave del comportamiento romántico
*/
1. Mientras dure mi obsesión con un ALGO
1.1 Pensar en las formas que podría adoptar la perfección para el ALGO
1.2 Recordarme cuan desafortunado soy de no haber hayado la perfección en el ALGO
1.3 Hacer que el objetivo único en mi vida sea mi obsesión en el ALGO
1.4 Reconocer que soy romántico y tengo derecho a hacer de mi vida la obsesión en el ALGO
@albertpeiro
albertpeiro / gist:3b1ce497583522c7fdb8
Last active August 29, 2015 14:10
The motherfucking chochoerrata responsive form
<!-- Ass-kicking html5 -->
<head>
<!-- BOOTSTRAP -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
</head>
<body>
<!-- Learn some bootstrap bitch! http://getbootstrap.com/css/#forms-horizontal -->