Skip to content

Instantly share code, notes, and snippets.

View ricobl's full-sized avatar

Enrico Batista da Luz ricobl

View GitHub Profile

This is a proposal for a lightning talk at the Reactive 2016 conference. If you like this, star the Gist.


Thinking metrics on React applications

In regular websites, it is common to send multiple events to track user clicks. Single Page Applications change the way you look at metrics. This is a talk about a simple pattern we created at Globo.com to manage a metrics layer for http://globoplay.globo.com. The talk will cover how to track user flow using Google Analytics and other services. We solved the challenge of tying metrics and components, keeping information across pages and having global data. Also some React, React Router and React Side Effects concepts like context, higher order components, history state will be covered.

@bardusco
bardusco / gist:953758
Created May 3, 2011 17:22
calculo de scores
# Recebe um dicionario de questões/notas
# e retorna outro dicionario com questoes/escala de graduação.
def question_grade(list):
takeaction = {
# Server
'objetos': [8, 8, 8, 9, 9, 10],
'arquitetura': [8, 8, 9, 9, 10, 11],
'scm': [8, 8, 8, 9, 10, 11],
'oneclick': [8, 8, 8, 9, 10, 11],
'ci': [8, 8, 8, 9, 9, 10],