public function gistFunc($id, $file = false)
    {
        $url = 'https://gist.github.com/' . $id . '.js';
        if ($file) {
            $url .= '?file=' . $file;
        }
        return '<script src="' . $url . '"></script>';
    }
public function gistFunc($id, $file = false)
    {
        $url = 'https://gist.github.com/' . $id . '.js';
        if ($file) {
            $url .= '?file=' . $file;
        }
        return '<script src="' . $url . '"></script>';
    }
public function gistFunc ( $ id , $ file = false ) { $ url = 'https://gist.github.com/' . $ id . '.js' ; if ( $ file ) { $ url .= '?file=' . $ file ; } return '<script src="' . $ url . '"></script>' ; }
Output a Gist

@param  string $id
@param  string|bool $file

@return string
Output a Gist