Skip to content

Instantly share code, notes, and snippets.

@gbanis
gbanis / gist:dec2bcc1a33c2e35f47f
Created Jan 23, 2015
Service Oriented Architecture: Building an Authorization Provider on Rails
View gist:dec2bcc1a33c2e35f47f
http://www.youtube.com/watch?v=q_gy8EgN8FE
http://www.youtube.com/watch?v=L1B_HpCW8bs&feature=youtu.be&t=0s
http://www.youtube.com/watch?v=xxFtyT9TlXE
http://www.octolabs.com/blogs/octoblog/2014/04/22/service-oriented-authentication-railsconf/
http://jagthedrummer.github.io/service_oriented_authentication/#/50
http://blog.yorkxin.org/posts/2013/11/05/oauth2-tutorial-grape-api-doorkeeper-en
http://anti-pattern.com/adding-a-new-strategy-to-omniauth
https://github.com/plataformatec/devise
https://github.com/doorkeeper-gem/doorkeeper
@gbanis
gbanis / validate_matching_parentheses
Created Dec 5, 2014
Validate a string for matching opening and closing parentheses and brackets.
View validate_matching_parentheses
# create a stack
# set the lookup hash
# set left = lookup.keys
# set right = lookup.values
# for each char in string
# is it a left bracket?
# add character on the stack
# if not, is it a right bracket?
# pop the last left bracket from the stack
View gist:4729d626c53ce20256c3
=begin
LEVEL 1: DEEP IN THE CRUD
====================================================================
CRUD = Create, Read, Update, Delete
CREATE
---------------------------------------------------------
You can’t perform that action at this time.