Skip to content

Instantly share code, notes, and snippets.

View cameck's full-sized avatar
(ॢ◕ัڡ ◕ั ॢ)

Cameron Eckelberry cameck

(ॢ◕ัڡ ◕ั ॢ)
View GitHub Profile
function injectGitFileStatus()
const timeout = 5000;
const addedColor = "#98C379";
const modifiedColor = "#D19A66";
const stagedColor = "#E06059";
const ignoredOpacity = "0.4";
const explorer = document.getElementById("workbench.view.explorer");
if (explorer)

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault