Skip to content

Instantly share code, notes, and snippets.

View heridev's full-sized avatar
🌠
Exploring GraphQL with the Github explorer

Heriberto Magaña heridev

🌠
Exploring GraphQL with the Github explorer
View GitHub Profile
@heridev
heridev / 0_unique_data.md
Last active March 9, 2022 16:01 — forked from DmitryTsepelev/0_unique_data.md
Active record duplicates, prevent duplicates, benchmark on duplicates with active record, single file ruby with rails active record benchmark, single file benchmarking active record duplicates
@heridev
heridev / Unix Command
Last active June 27, 2017 19:14 — forked from vaquarkhan/Unix Command
most common unix command for development
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
#####################################################
@heridev
heridev / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@heridev
heridev / capybara cheat sheet
Last active August 29, 2015 14:07 — forked from zhengjia/capybara cheat sheet
capybara cheat sheets
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@heridev
heridev / gist:637009ed5df0e52ab939
Last active November 11, 2021 15:13
How to implement google tag manager in Spree

Create a new override file to add the google tag manager partial into the main spree_application layout

where "add_google_tag_manager" can be whatever name you want.

app/overrides/spree/layouts/spree_application/add_google_tag_manager.html.erb.deface

The content for the override is:

<!-- insert_after '.container' -->
<%= render :partial => 'spree/shared/google_tag_manager'%>