This file contains hidden or 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
| import os | |
| import sys | |
| from fab_deploy import * | |
| from fabric.contrib.console import confirm | |
| from fabric.api import env, cd, prefix, local, sudo as _sudo, run as _run, hide, task, settings, abort | |
| from fabric.contrib.files import exists, upload_template | |
| from fabric.colors import yellow, green, blue, red | |
| from fabric.operations import _prefix_commands, _prefix_env_vars | |
| from contextlib import contextmanager |
This file contains hidden or 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
| def make_markdown_table(array): | |
| """ Input: Python list with rows of table as lists | |
| First element as header. | |
| Output: String to put into a .md file | |
| Ex Input: | |
| [["Name", "Age", "Height"], | |
| ["Jake", 20, 5'10], | |
| ["Mary", 21, 5'7]] |
This file contains hidden or 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
| module Devise | |
| module Models | |
| module RemoteAuthenticatable | |
| extend ActiveSupport::Concern | |
| # | |
| # Here you do the request to the external webservice | |
| # | |
| # If the authentication is successful you should return | |
| # a resource instance |