Skip to content

Instantly share code, notes, and snippets.

Tal Safran talsafran

Block or report user

Report or block talsafran

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Podia Product Survey Summer

Podia Product Survey Summer 2019

  • What’s the single MOST important thing for us to add to Podia? “If Podia had [ BLANK ], I would be the happiest person in the world”.

  • What else can we do better? I wish Podia would improve:

  • What do you find difficult or confusing in Podia?

  • What is the primary benefit that you have received from Podia?

View breadth-first-analytics.rb
# Read about this technique here:
class ApplicationController < ActionController::Base
after_filter :track_event
'users#create' => 'User Created',
View 6-track-asynchronously.rb
class ApplicationController < ActionController::Base
def track_event
mixpanel.track(event_user, event_name, event_properties)
handle_asynchronously :track_event
View 5-separating-into-concern.rb
# app/controllers/application_controller.rb
class ApplicationController < ApplicationController
include EventTracking
# app/controllers/concerns/event_tracking.rb
module EventTracking
extend ActiveSupport::Concern
# all dat code
View 4-sending-custom-properties.rb
class ApplicationController < ActionController::Base
def track_event
mixpanel.track(event_user, event_name, event_properties)
def event_properties
View 3-track-translated-events.rb
class ApplicationController < ActionController::Base
after_action :track_event
def track_event
mixpanel.track(event_user, event_name)
def event_user
View 2-translation-definitions.rb
'users#create' => 'User Created',
'users#update' => 'User Updated',
'orders#new' => 'Order Started',
'orders#create' => 'Order Created',
'orders#update' => 'Order Updated'
View Junto Numero Uno
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.
talsafran /
Created Nov 3, 2012
Email from Louis CK

Hello. Its louis here. I'm clacking this to you on my phone in my dressing room here at studio 8H, right in 30 rockefeller center, in Manhattan, new york city, new york, america, world, current snapshot of all existence everywhere.

Tonight I'm hosting Saturday Night Live, something I zero ever in my life saw happening to me. And yet here it is completely most probably happening (I mean, ANYTHING could NOT happen. So we'll see).

I've been working here all week with the cast, crew, producers and writers of SNL, and with Lorne Michaels. Such a great and talented group of people.

And here we are in the middle of New York City, which was just slammed by a hurricane, leaving behind so much trouble, so much difficulty and trauma, which everyone here is still dealing with every day.

Last night we shot some pre-tape segments in greenwich Village, which was pitch black dark for blocks and blocks, as it has been for a week now.

talsafran / application.html.erb
Created Sep 24, 2012
jQuery selector scoping technique using currying
View application.html.erb
<body class="<%= "#{params[:controller]} #{params[:action]}" %>">
You can’t perform that action at this time.