Skip to content

Instantly share code, notes, and snippets.

View higormarques's full-sized avatar

Higor Neves Marques higormarques

View GitHub Profile
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
@higormarques
higormarques / .zshrc
Last active March 28, 2019 11:40
Oh My ZSH + Spaceship theme configuration file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
# Don't forget to change thet path for your owm path.
export ZSH="/Users/higornevesmarques/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
@higormarques
higormarques / gtmDataLayerArray.md
Created January 18, 2018 13:06 — forked from garrucho/gtmDataLayerArray.md
Como ler propriedades dentro de um array do dataLayer com o Google Tag Manager e transformá-los em um array simples.

Loop para ler arrays no Google Tag Manager

Problema:

Meu dataLayer tem um array para cada produto, e cada produto tem várias informações. Preciso dessa informações (nome, por exemplo) em uma única variável.

Como resolver?

Criar uma variável do tipo "JavaScript personalizado" que faça um loop através de cada índice do array, coletando a informação ali presente e gravando em um outro array.