Main Branches
- Master (Main)
- dev
- review
- staging
From master git checkout dev
Main Branches
From master git checkout dev
100% of these suggestions are based on recent & relevant real world experience. We have, at least at one point, tried to use these patterns on our own & witnessed how the decision played out over years in production.
module Audited | |
class Audit | |
alias_method :after_save, :save | |
# NOTE: Hack fix checking for changes, still not sure why its triggering 2x | |
def save(*_args) | |
unless self.auditable.changed? # better way to get this not to fire 2x? | |
self.created_at ||= Time.current | |
conrtl = Audited.store[:current_controller] | |
if conrtl |
# NewRelic instrumenter for GraphQL-ruby | |
# | |
# In your controller: | |
# ::NewRelic::Agent.add_custom_attributes({ | |
# user_id: @user.try(:id), | |
# query_string: @query_string, | |
# query_arguments: @query_variables | |
# }) | |
# | |
# @document = self.class.trace_execution_scoped(["GraphQL#parse"]) do |
A curated list by Eric Elliott and friends. Suggest links in the comments below.
This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments.
Some of these links are affiliate links, meaning that if you make a purchase, I might earn a little money. This has absolutely no bearing on whether or not links make the list. None, whatsoever. However, it does allow me more resources to fight poverty with code. Every little bit counts.
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
# We created a folder to house our code for the class | |
mkdir code | |
# We changed into that directory | |
cd code | |
# We verified git was installed | |
which git | |
# After forking on github, we cloned OUR copy | |
git clone https://github.com/StevenNunez/BEWD_NYC_5.git | |
# We checked what folders are in our code folder. Cloning creates a folder named after the repository. | |
ls |