Created
March 19, 2012 06:50
-
-
Save jinzhu/2099624 to your computer and use it in GitHub Desktop.
Get hot vim scripts
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 'rubygems' | |
require 'rest_client' | |
require 'json' | |
watcher_threshold = 50 | |
user = "vim-scripts" | |
results = [] | |
url = "http://github.com/api/v2/json/repos/search/vim" | |
# url = "http://github.com/api/v2/json/repos/show/#{user}" | |
def get_filtered_repositories(response, watcher_threshold) | |
JSON.parse(response)['repositories'].select do |repo| | |
repo["watchers"] > watcher_threshold | |
end | |
end | |
response = RestClient.get url | |
last_url = response.headers[:x_last] | |
last_url =~ /page=(\d+)/ | |
last_page = $1.to_i | |
results.concat get_filtered_repositories(response, watcher_threshold) | |
(2..last_page).map do |page| | |
response = RestClient.get "#{url}?page=#{page}" | |
results.concat get_filtered_repositories(response, watcher_threshold) | |
end | |
puts results.map {|result| result["name"] } |
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
["ack.vim", 374, "mileszs"] | |
["clang_complete", 283, "Rip-Rip"] | |
["cocoa.vim", 148, "msanders"] | |
["ctrlp.vim", 473, "kien"] | |
["delimitMate", 163, "Raimondi"] | |
["dotfiles", 104, "nelstrom"] | |
["dotfiles", 109, "mislav"] | |
["dotfiles", 114, "tomasr"] | |
["dotfiles", 529, "skwp"] | |
["dotvim", 173, "astrails"] | |
["eclim", 122, "ervandew"] | |
["emacs-eclim", 128, "senny"] | |
["fuzzyfinder_textmate", 230, "jamis"] | |
["gist-vim", 262, "mattn"] | |
["gitv", 147, "gregsexton"] | |
["git-vim", 505, "motemen"] | |
["gundo.vim", 221, "sjl"] | |
["html5.vim", 147, "othree"] | |
["jellybeans.vim", 92, "nanotech"] | |
["jslint.vim", 325, "hallettj"] | |
["lusty", 123, "sjbach"] | |
["macvim", 2266, "b4winckler"] | |
["minibufexpl.vim", 238, "fholgado"] | |
["neocomplcache", 439, "Shougo"] | |
["nerdcommenter", 482, "scrooloose"] | |
["nerdtree", 1398, "scrooloose"] | |
["pyflakes-vim", 241, "kevinw"] | |
["python-mode", 250, "klen"] | |
["ranger", 161, "hut"] | |
["scss-syntax.vim", 137, "cakebaker"] | |
["snipmate_for_django", 130, "robhudson"] | |
["snipmate-snippets", 206, "honza"] | |
["snipmate.vim", 1342, "msanders"] | |
["solarized", 2248, "altercation"] | |
["spf13-vim", 562, "spf13"] | |
["supertab", 363, "ervandew"] | |
["syntastic", 612, "scrooloose"] | |
["tabular", 258, "godlygeek"] | |
["tagbar", 277, "majutsushi"] | |
["taskpaper.vim", 101, "davidoc"] | |
["tcomment_vim", 90, "tomtom"] | |
["textmatevim", 155, "philc"] | |
["unite.vim", 159, "Shougo"] | |
["Vim", 275, "applidium"] | |
["vim-addon-manager", 160, "MarcWeber"] | |
["Vimana", 164, "c9s"] | |
["vim-autoclose", 92, "Townk"] | |
["vim-coffee-script", 566, "kchmck"] | |
["vim-colors-solarized", 753, "altercation"] | |
["vim-commentary", 113, "tpope"] | |
["vim-config", 121, "derekwyatt"] | |
["vim-config-python-ide", 111, "skyl"] | |
["vim-css-color", 208, "skammer"] | |
["vim-cucumber", 213, "tpope"] | |
["vim-easymotion", 271, "Lokaltog"] | |
["vim-easytags", 89, "xolox"] | |
["vimerl", 126, "oscarh"] | |
["vim-extradite", 90, "int3"] | |
["vimfiles", 107, "mislav"] | |
["vimfiles", 395, "scrooloose"] | |
["vim-fugitive", 1829, "tpope"] | |
["vim-git", 172, "tpope"] | |
["vim-haml", 328, "tpope"] | |
["vim-indent-guides", 249, "nathanaelkane"] | |
["vim-ipython", 112, "ivanov"] | |
["vim-jade", 96, "digitaltoad"] | |
["vim-javascript", 258, "pangloss"] | |
["vim-less", 92, "groenewege"] | |
["vim-markdown", 190, "tpope"] | |
["vim-markdown", 254, "plasticboy"] | |
["VimOrganizer", 291, "hsitz"] | |
["vim-orgmode", 217, "jceb"] | |
["vim-pasta", 129, "sickill"] | |
["vim-pathogen", 1503, "tpope"] | |
["vim-perl", 189, "petdance"] | |
["vim-powerline", 912, "Lokaltog"] | |
["vim-quickrun", 134, "thinca"] | |
["vim-ragtag", 113, "tpope"] | |
["vim-rails", 1419, "tpope"] | |
["vimrc", 167, "nvie"] | |
["vim-recipes", 216, "runpaint"] | |
["vim-repeat", 149, "tpope"] | |
["vimroom", 123, "mikewest"] | |
["vim-ruby", 514, "vim-ruby"] | |
["vim-ruby-debugger", 278, "astashov"] | |
["vim-ruby-refactoring", 158, "ecomba"] | |
["vimshell", 131, "Shougo"] | |
["vim_shortcut_wallpaper", 119, "LevelbossMike"] | |
["vim-surround", 641, "tpope"] | |
["vim-unimpaired", 157, "tpope"] | |
["vim-vividchalk", 92, "tpope"] | |
["vip", 91, "tobyS"] | |
["vmail", 189, "danchoi"] | |
["vrapper", 132, "vrapper"] | |
["vrome", 234, "jinzhu"] | |
["VsVim", 443, "jaredpar"] | |
["vundle", 1035, "gmarik"] | |
["Waldo", 169, "jtaby"] | |
["xmledit", 110, "sukima"] | |
["zencoding-vim", 573, "mattn"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment