Skip to content

Instantly share code, notes, and snippets.

View RobAWilkinson's full-sized avatar

Rob Wilkinson RobAWilkinson

  • @oddballio
  • Austin, TX
View GitHub Profile
@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active July 10, 2024 00:17
Simple Authentication in Rail 4 Using Bcrypt

#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

##Steps

@stephaniewilkinson
stephaniewilkinson / gist:3a317103e9d3e10d98f5
Last active August 29, 2015 14:03
The Mobbing Manual

The mobbing manual provides guidelines for working in a group oriented context

Values

  • Kindness
  • Consideration
  • Respect

Roles

  • Driver Learning Goal: practice keyboarding, listening, and translation skills.
require 'httparty'
require_relative './passwords'
# blank array to hold usernames
usernames = []
#create blank array to hold HTTParty get threads
username_threads = []
(32..34).each do |num|
@joepie91
joepie91 / promises-reading-list.md
Last active June 25, 2023 09:12
Promises (Bluebird) reading list

Promises reading list

This is a list of examples and articles, in roughly the order you should follow them, to show and explain how promises work and why you should use them. I'll probably add more things to this list over time.

This list primarily focuses on Bluebird, but the basic functionality should also work in ES6 Promises, and some examples are included on how to replicate Bluebird functionality with ES6 promises. You should still use Bluebird where possible, though - they are faster, less error-prone, and have more utilities.

I'm available for tutoring and code review :)

You may reuse all gists for any purpose under the WTFPL / CC0 (whichever you prefer).