Skip to content

Instantly share code, notes, and snippets.

View mumoc's full-sized avatar

Mumo Carlos mumoc

View GitHub Profile
@mumoc
mumoc / gist:55dce225244fb02363e2
Last active May 9, 2016 12:59
Spree Site Wide Preferences
# ***config/application.rb***
module SpreeDemo
class Application < Rails::Application
# more awesome code here...
config.to_prepare do |config|
# more code here...
config.autoload_paths += %W(#{config.root}/lib/spree/)
@mumoc
mumoc / ecommerce-cheat-sheet.md
Last active February 5, 2016 18:56 — forked from vicmaster/ecommerce-cheat-sheet.md
eCommerce cheat sheet

Abandonment Rate:

Shopping cart abandonment is a term frequently used in the ecommerce world. Shopping cart abandonment (a.k.a cart abandonment) refers to the issue when the digital customer adds the desired product to the virtual shopping cart and leaves the digital property before completing the purchase. The abandonment rate is the ratio of the total number of abandoned shopping carts to the number of total initiated cart transactions. The metric is used to measure the performance of the digital shopping cart. A typical abandonment rate varies from 60-85%.

Abandonment Rate = Total number of abandoned carts / Total number of cart transactions

Acquisition:

@mumoc
mumoc / 5_considerations_to_deliver_accurate_estimations.md
Last active March 7, 2018 16:18
Blogpost: 5 Considerations to Deliver Accurate Estimations

Some time ago I wrote about estimations and how to calculate the effort of the tasks in an attempt to facilitate the process of thinking and reasoning to transfer effort to time, not to impose a new scheme or format.

Interesting enough one of the comments I received was:

It does not make sense, I think the time and I multiply it by 6 and that's it.

Curiously, there is a lot of uncertainty in this method of calculating effort or time; it makes me wonder how customers can accept that method. But then again, these are estimations and it is valid if that is your particular way of working. As an alternative, I would like to focus on what does each task that I estimate have to do with other tasks, other chores, other best practices and whatever my experience reminds me to be aware of in such task.

If you use the Agile methodology, you will be familiar with the following development lifecycle:

@mumoc
mumoc / answering_questions.md
Last active November 30, 2020 17:22
Answering Questions

A few days ago someone asked me:

Is there a method to share what we know? People approaches me with questions and I find it a bit difficult to make myself understand.

My answer was more or less like this.

There are 2 parts on this interaction, that depend on each other:

  1. How they ask
  2. How do you answer
@mumoc
mumoc / code_using_spree_asset_file_spree_product.md
Last active December 1, 2020 17:37
Code: Using Spree::Asset to add Files to Spree::Product

Config

File Model

app/models/my_app_scope/file.rb

module MyAppScope
  class File < ::Spree::Asset
    has_attached_file :attachment,
                      url: '/spree/products/:id/:basename.:extension',
@mumoc
mumoc / using_spree_asset_to_add_files_to_product.md
Last active December 1, 2020 18:33
How to re-use Spree::Asset in Solidus to attach Files to another model

Recently, in a Solidus project, we faced the need to add Files to Products for customers to be able to download.

In general terms, the business logic was:

  • A Product can have many Files
  • Customers can download Files from purchased Products
  • File links cannot be shared
  • Files must be administrables

Given the project was using Amazon S3 to store the files and we didn't wanted to modify Solidus a lot, our approach was:

@mumoc
mumoc / de_procesos_agile_y_profesionalismo.md
Last active February 15, 2021 01:39
Magmalabs: De Procesos, Agile y Profesionalismo

De Procesos, "Agile" y Profesionalismo

Jueves 18 de Febrero, 2021 by Mumo Carlos

Acerca de Mí

Soy Mumo Carlos Ingeniero de Software en MagmaLabs

Actualmente coordino los esfuerzos de Producto, Investigación y Desarrollo

@mumoc
mumoc / lotties_rails_6_webpacker.md
Created February 16, 2021 03:26
Lotties with Rails 6 and Webpacker
  1. Install Lottie Player:
npm install --save @lottiefiles/lottie-player
  1. Require it at app/javascript/packs/application.js
require('@lottiefiles/lottie-player');
@mumoc
mumoc / 05_18_21_post_coherence_and_communication.md
Last active August 31, 2021 16:05
Post: Coherence and Communication, May 15 2021

Coherence and Communication

Some time ago someone asked me:

How do you make your teams have more coherence and communication?

Although it involves many things, in my experience, I have found that cultivating these 4 things helps success:

  • Ownership
  • Continuity
@mumoc
mumoc / 06_22_21_post_success.md
Last active August 31, 2021 16:07
Post: Success, June 22 2021

Success

Every now and then during a 1–1 or performance review I like to ask: have you been successful? or are you successful?.

Curious have been the answers, so varied and so similar at the same time, with a common line: self-doubt.

Every time you ask me, Are you a successful person? My answer has been and will continue to be the same: YES.

It is necessary to understand what success is, which, by definition, is: