- register a new project here
- set the followings under APIs & auth:
- Consent screen: fill out the requires fields
- APIs: Contacts API & Google+ API
- Creditentials: create a new OAuth client ID
- AUTHORIZED JAVASCRIPT ORIGINS: HOST (your app host) (protocol prefixed!)
- AUTHORIZED REDIRECT URI: HOST/auth/google/callback (protocol prefixed!)
- sign in url is user_omniauth_authorize_path(:google)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'time' | |
class Human | |
attr_reader :birth_date | |
def initialize(birth_date) | |
@birth_date = birth_date | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#--------------------------------------------- | |
# xdg-open | |
# | |
# Utility script to open a URL in the registered default application. | |
# | |
# Refer to the usage() function below for usage. | |
# | |
# Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> | |
# Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org> |
NewerOlder