Skip to content

Instantly share code, notes, and snippets.


Matheus Lima matheusml

View GitHub Profile
View Reactive Conf - Thinking metrics on React

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 to manage a metrics layer for 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.

davirds / .bashrc
Last active Oct 1, 2015
How to you can customize your terminal on linux for show branch of git project
View .bashrc
# Function for get branch of git project
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
# Color
# PS1 is terminal workspace
staltz /
Last active Nov 29, 2020
The introduction to Reactive Programming you've been missing
mikaelbr / destructuring.js
Last active Nov 19, 2020
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic:
View destructuring.js
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
You can’t perform that action at this time.