Skip to content

Instantly share code, notes, and snippets.

View Theminijohn's full-sized avatar
🤘
Building Growth Products

Mini John™ Theminijohn

🤘
Building Growth Products
View GitHub Profile
class RegistrationsController < Devise::RegistrationsController
def create
super # This calls Devise::RegistrationsController#create
if resource.save
# Mixpanel Create User Profile
mixpanel.track(@user.id, 'Created Account', {
'$first_name' => @user.first_name,
'$gametag' => @user.game_tag,
'$email' => @user.email,
@Theminijohn
Theminijohn / card_api.rb
Created April 24, 2014 18:49
Hearthstone Card Attributes
{
id: "1",
card_name: "Abomination",
card_type: "Minion",
card_class: "",
race: "",
cost: "5",
attack: "4",
health: "4",
rarity: "Rare",