Skip to content

Instantly share code, notes, and snippets.

View heltonvalentini's full-sized avatar
🏠
Working from home

Helton Valentini heltonvalentini

🏠
Working from home
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.

##
## How to install mcrypt in php7.2 / php7.3
## Linux / MacOS / OSX
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
#
@chrisjhoughton
chrisjhoughton / proxy.apache.conf
Last active August 9, 2023 10:17
Sample Nginx reverse proxy to Apache set up for Wordpress.
<VirtualHost *:{PORT}>
ServerName www.yourdomain.com
ServerAdmin mail@domain.com
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
var Dialog = React.createClass({
render: function() {
// 1) render nothing, this way the DOM diff will never try to do
// anything to it again, and we get a node to mess with
return React.DOM.div();
},
componentDidMount: function() {
// 2) do DOM lib stuff
this.node = this.getDOMNode();
@rafaellincoln
rafaellincoln / gitflow.md
Last active October 22, 2019 16:20
Git Flow - Comandos Manuais

Feature

Criar branch feature

git checkout develop
git pull origin develop
git checkout -b feature/CODIGO_TASK
@rogerioyokoi
rogerioyokoi / contrast-function.scss
Last active January 28, 2019 14:28
Contrast Mixin to helper implement accessibility colors.
// ----
// libsass (v3.5.4)
// ----
$contrasts: 'base', 'contrast-white', 'contrast-black';
$colors: (
'primary': (
'base': red,
'contrast-white': white,