Skip to content

Instantly share code, notes, and snippets.

View evandroeisinger's full-sized avatar

Evandro Eisinger evandroeisinger

View GitHub Profile
@sloria
sloria / bobp-python.md
Last active July 24, 2024 02:53
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@weberhen
weberhen / rand.c
Last active December 26, 2015 13:19
random C code with range passed as parameter
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(int argc, char**argv)
{
srand (time(NULL));
printf("%d",rand()%atoi(argv[1]));
return 0;
}
@jlggross
jlggross / sorteio.c
Created October 25, 2013 16:29
Realiza o sorteio de 1 a 5
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main () {
int iSecret;
srand (time(NULL));
iSecret = rand() % 5 + 1;

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.