Skip to content

Instantly share code, notes, and snippets.

View gbanis's full-sized avatar

George Banis gbanis

View GitHub Profile
@gbanis
gbanis / gist:dec2bcc1a33c2e35f47f
Created January 23, 2015 21:06
Service Oriented Architecture: Building an Authorization Provider on Rails
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 December 5, 2014 02:16
Validate a string for matching opening and closing parentheses and brackets.
# 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
=begin
LEVEL 1: DEEP IN THE CRUD
====================================================================
CRUD = Create, Read, Update, Delete
CREATE
---------------------------------------------------------