This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
... | |
private | |
def track_event | |
mixpanel.track(event_user, event_name, event_properties) | |
end | |
def event_properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
after_action :track_event | |
private | |
def track_event | |
mixpanel.track(event_user, event_name) | |
end | |
def event_user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EVENT_TRANSLATIONS = { | |
'users#create' => 'User Created', | |
'users#update' => 'User Updated', | |
'orders#new' => 'Order Started', | |
'orders#create' => 'Order Created', | |
'orders#update' => 'Order Updated' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fire Spinning | |
Q: How do I hold and spin the poi? | |
A: You can hold the poi any way that feels comfortable. You can use arm action, wrist action, or a combination of both. | |
Q: How can I get better at a "triple weave?" | |
A: Break it down, then reassemble. Learn each individual arm movement, then combine. | |
J: This may be more suitable for the way I think (breaking things into simple steps, then combining to do something complex) | |
A: Just go for it. Keep trying together, 'til you get it. | |
J: Sometimes this approach is faster – you're trying to reach your goal immediately, instead of waiting to perfect steps one at a time. |
NewerOlder