Skip to content

Instantly share code, notes, and snippets.

View rxco's full-sized avatar

Raúl Contreras rxco

  • Cupertino, CA
View GitHub Profile

User already registered in Ometria, with EXPLICITY_OPTEDOUT

=> <Spree::User id: 2382720, email: "wondrbly-stg4-sync@yopmail.com", persistence_token: nil, perishable_token: nil, last_request_at: nil, login: "wondrbly-stg4-sync@yopmail.com", ship_address_id: nil, bill_address_id: nil, authentication_token: "uUJdd1MNJJS9x1gsZeCq", created_at: "2018-05-17 21:37:58", updated_at: "2018-05-17 21:37:58", spree_api_key: nil, firstname: "Jess", lastname: "Bach", raw_confirmation_token: "35gKsUFnxuL3Wz4yUjyS", referred_user_token: "KCDE3aGtYEJzAq2m2Q41", sent_emails: [], email_unsubscriptions: [], nps: nil, settings: nil, deleted_at: nil, signup_country_id: 44, marketing_opt_in: false, email_tracking_token: "jwGZMOzpSjbsCT3V6TrZUS-5DuSAUwRY", signup_locale: "de", signup_source: "onsite:co">

When trying to send a double optin email:

@rxco
rxco / mailchimp
Created July 21, 2017 19:10
mailchimp
module Spree
require "mandrill"
class UserMailerMandrill < BaseMailer
def reset_password_instructions(user, token, *args)
@store = Spree::Store.default
@edit_password_reset_url = spree.edit_spree_user_password_url(reset_password_token: token, host: @store.url)
@rxco
rxco / gist:7271951
Last active December 27, 2015 05:09
Android Background Jobs
/*This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0
Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/
or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.*/
package com.leyendalabs.guarurapp.framents;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;