# bad: strings in where clause
Contract.joins(:user, :project) \
.where("users.active = :active AND assignments.active = :active", active: true) \
.references(:users, :assignments)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Intercom Copy Notes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://app.intercom.com/* | |
// @icon https://www.google.com/s2/favicons?domain=intercom.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "minitest/autorun" | |
require "minitest/pride" | |
################################################################################ | |
# Tests | |
# | |
# You are NOT allowed to change the tests, the only thing you are | |
# allowed to change are removing the "skip" calls. | |
# |
I hereby claim:
- I am nethad on github.
- I am nethad (https://keybase.io/nethad) on keybase.
- I have a public key whose fingerprint is A9A0 4CA6 4453 8334 A414 3EEE 13C5 073A 155C D8A1
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git-hooks/pre-commit/binding-pry.sh | |
FOCUS_FILES=`git diff-index --cached --name-only HEAD | xargs grep 'binding.pry' | wc -l` | |
if [ $FOCUS_FILES -gt 0 ] | |
then | |
echo "[pre-commit] You have at least 1 file with a 'binding.pry' call, please remove first." | |
exit 1 | |
fi |