Skip to content

Instantly share code, notes, and snippets.

View justuseapen's full-sized avatar

Justus Eapen justuseapen

View GitHub Profile
@jboursiquot
jboursiquot / attempt.rb
Created January 7, 2014 21:18
app/models/authentication/attempt.rb
module Authentication
class Attempt
class_attribute :bypass_team_check
attr_reader :data
def initialize(auth_data, user_params = {})
@data = auth_data
@user_params = user_params
end
@jboursiquot
jboursiquot / authenticate_with_github_spec.rb
Created January 7, 2014 21:16
spec/features/authenticate_with_github_spec.rb
require 'spec_helper'
feature 'authenticate with github', %q{
As a user
I want to authenticate
So that I can gain access to the system
}, authentication: true,
vcr: {cassette_name: 'github/auth'} do
# Acceptance Criteria
# * if my identity exists in the system and I'm authorized, grant me access
@wannabefro
wannabefro / sublimetips.md
Created November 12, 2013 22:00
sublime stuff

Sublime Text Tips & Tricks

Command P || Command T

Press Command + T or Command + P, type in the name of the file you wish to access (fuzzy finder), and, without even pressing Enter, you’ll instantly be transported to that file.

Shift Command P

We can use Sublime’s command palette by accessing the Tools menu, or by pressing Shift + Command + P, on the Mac.

Whether you need to visit a Preferences page, or paste in a snippet, all of that can be accomplished here.

@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=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')