Skip to content

Instantly share code, notes, and snippets.

@mattn
Created November 30, 2012 02:07
Show Gist options
  • Save mattn/4173323 to your computer and use it in GitHub Desktop.
Save mattn/4173323 to your computer and use it in GitHub Desktop.
function! s:search(name)
return map(filter(webapi#json#decode(webapi#http#get(printf('https://api.github.com/legacy/repos/search/%s', a:name)).content).repositories, 'v:val.name==a:name'), 'v:val.username ."/". v:val.name')
endfunction
echo s:search('gist-vim')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment