Skip to content

Instantly share code, notes, and snippets.


Helton Valentini heltonvalentini

View GitHub Profile
rogerioyokoi / contrast-function.scss
Last active Jan 28, 2019
Contrast Mixin to helper implement accessibility colors.
View contrast-function.scss
// ----
// libsass (v3.5.4)
// ----
$contrasts: 'base', 'contrast-white', 'contrast-black';
$colors: (
'primary': (
'base': red,
'contrast-white': white,
rafaellincoln /
Last active Oct 22, 2019
Git Flow - Comandos Manuais


Criar branch feature

git checkout develop
git pull origin develop
git checkout -b feature/CODIGO_TASK
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.

View Dialog.js
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();
chrisjhoughton / proxy.apache.conf
Last active Feb 21, 2021
Sample Nginx reverse proxy to Apache set up for Wordpress.
View proxy.apache.conf
<VirtualHost *:{PORT}>
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny