Skip to content

Instantly share code, notes, and snippets.

View iagodahlem's full-sized avatar

Iago Dahlem iagodahlem

View GitHub Profile
@iagodahlem
iagodahlem / scalable-front-end-the-state-layer-combine-reducers.js
Last active March 29, 2019 15:02
Scalable Frontend - The State Layer - Combine Reducers
import { combineReducers } from 'redux'
const authorsReducer = (state, action) => newState
const articlesReducer = (state, action) => newState
const rootReducer = combineReducers({
authors: authorsReducer,
articles: articlesReducer,
})
@iagodahlem
iagodahlem / scalable-front-end-the-state-layer-state-shape.js
Last active March 29, 2019 15:01
Scalable Frontend - The State Layer - State Shape
{
articles: [
{
id: 1,
title: 'Managing all state in one reducer',
author: {
id: 1,
name: 'Iago Dahlem Lorensini',
email: '[email protected]'
},
.
|-- src
|  |-- common
|  |  |-- infra
|  |  |  |-- httpService.js
|  |  |-- view
|  |  |  |-- Button.js
|  |  |  |-- Input.js
| |-- article
.
|-- src
|  |-- app
|  |  |-- user
|  |  |  |-- CreateUser.js
|  |  |-- article
|  |  |  |-- GetArticle.js
|  |-- domain
| | |-- user
@iagodahlem
iagodahlem / meta-tags.md
Created October 6, 2016 20:14 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@iagodahlem
iagodahlem / setup-elementary.sh
Last active November 19, 2016 22:54
Some setups for Elementary OS.
# Elementary Setup and Tweaks - for Elementary OS Loki
# extra installations
sudo apt-get install software-properties-common -y
# clean up
sudo apt-get purge evolution-data-server -y
# elementary-tweaks
sudo add-apt-repository ppa:philip.scott/elementary-tweaks -y
@iagodahlem
iagodahlem / declaration-order-css.js
Last active September 28, 2016 14:16
My CSS order declaration rules for stylelint.
{
'declaration-block-properties-order': [
{
properties: [
'position',
'z-index',
'top',
'right',
'bottom',
'left',

Ubuntu Setup Guide

TODO: Description

1. Updating Everything

sudo apt-get update

sudo apt-get upgrade
@iagodahlem
iagodahlem / .gitignore
Created March 13, 2016 18:51 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@iagodahlem
iagodahlem / .editorconfig
Created January 30, 2016 17:51
My default code Styles in editorconfig.
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
# top-most EditorConfig file
root = true
# All types
[*]
charset = utf-8