import requests


def get_gist(url):
    """ Get gist contents from gist url. 
        Note the gist url display the raw gist instead of usual gist page.
        Args:
            url (str) : url containing the raw gist instead of usual gist page.
        Returns:
            (str): output gist str.
            
    """
    r = requests.get(url)
    assert r.status_code==200, "Failed Page query code {}".format(r.status_code)
    
    return r.text