Skip to content

Instantly share code, notes, and snippets.

View talsafran's full-sized avatar

Tal Safran talsafran

View GitHub Profile
class ApplicationController < ActionController::Base
...
private
def track_event
mixpanel.track(event_user, event_name, event_properties)
end
def event_properties
class ApplicationController < ActionController::Base
after_action :track_event
private
def track_event
mixpanel.track(event_user, event_name)
end
def event_user
EVENT_TRANSLATIONS = {
'users#create' => 'User Created',
'users#update' => 'User Updated',
'orders#new' => 'Order Started',
'orders#create' => 'Order Created',
'orders#update' => 'Order Updated'
}
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.