Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sunng87/3140731 to your computer and use it in GitHub Desktop.
Save sunng87/3140731 to your computer and use it in GitHub Desktop.
TOP github users in China
({:username "imakewebthings",
:name "Caleb Troughton",
:language "JavaScript",
:score 5476.8}
{:username "flyerhzm",
:name "Richard Huang",
:language "Ruby",
:score 2776.2}
{:username "fredwu",
:name "Fred Wu",
:language "Ruby",
:score 2617.8999999999996}
{:username "kissyteam",
:name "kissyteam",
:language "JavaScript",
:score 1743.0}
{:username "JeffreyZhao",
:name "Jeffrey Zhao",
:language "C#",
:score 1625.3}
{:username "livid",
:name "Xin Liu",
:language "Python",
:score 1616.0}
{:username "sofish",
:name "sofish",
:language "JavaScript",
:score 1133.1999999999998}
{:username "thoughtworks",
:name "ThoughtWorks Inc.",
:language "Ruby",
:score 1104.6999999999998}
{:username "chaoslawful",
:name "Wang, Xiaozhe",
:language "C",
:score 1038.9}
{:username "zzdhidden",
:name "hidden",
:language "JavaScript",
:score 1031.5}
{:username "bububa",
:name "Prof Syd Xu",
:language "Python",
:score 952.4}
{:username "huacnlee",
:name "Jason Lee",
:language "Ruby",
:score 928.2}
{:username "phus", :name "Phus Lu", :language "Python", :score 926.6}
{:username "shellex",
:name "Shellex Wai",
:language "JavaScript",
:score 922.3}
{:username "qiao",
:name "Xueqiao Xu",
:language "JavaScript",
:score 856.1}
{:username "saberma", :name "saberma", :language "Ruby", :score 804.0}
{:username "yaoweibin",
:name "Weibin Yao(姚伟斌)",
:language "C",
:score 754.5}
{:username "ashchan",
:name "James Chen",
:language "Ruby",
:score 739.8}
{:username "robin",
:name "Robin Lu",
:language "Ruby",
:score 714.0999999999999}
{:username "lepture",
:name "Hsiaoming Yang",
:language "Python",
:score 671.9}
{:username "killme2008",
:name "dennis zhuang",
:language "Java",
:score 658.0999999999999}
{:username "chloerei", :name "Rei", :language "Ruby", :score 624.7}
{:username "chenshuo",
:name "Shuo Chen",
:language "C++",
:score 614.8}
{:username "sunng87",
:name "Sun Ning",
:language "Clojure",
:score 542.7}
{:username "yzhang",
:name "Yuanyi Zhang",
:language "Ruby",
:score 537.4}
{:username "vicalloy",
:name "vicalloy",
:language "Python",
:score 506.8}
{:username "lzyy",
:name "lzyy",
:language "PHP",
:score 500.09999999999997}
{:username "JacksonTian",
:name "Jackson Tian",
:language "JavaScript",
:score 487.8}
{:username "shuttler", :name "BohuTANG", :language "C", :score 446.9}
{:username "tualatrix",
:name "Tualatrix Chou",
:language "Python",
:score 429.29999999999995}
{:username "AlibabaTech",
:name "Alibaba",
:language "Java",
:score 424.3}
{:username "laruence",
:name "Xinchen Hui",
:language "C",
:score 414.4}
{:username "dexteryy",
:name "Dexter.Yy",
:language "JavaScript",
:score 390.79999999999995}
{:username "lifesinger",
:name "lifesinger",
:language "JavaScript",
:score 387.3}
{:username "pluskid",
:name "Chiyuan Zhang",
:language "Python",
:score 382.7}
{:username "hooopo", :name "Hooopo", :language "Ruby", :score 382.5}
{:username "sishen",
:name "Dingding Ye",
:language "Ruby",
:score 381.29999999999995}
{:username "Jinjiang",
:name "勾三股四",
:language "JavaScript",
:score 330.29999999999995}
{:username "tinyfool",
:name "Tinyfool",
:language "PHP",
:score 310.6}
{:username "feelinglucky",
:name "mingcheng",
:language "PHP",
:score 304.4}
{:username "fengmk2",
:name "fengmk2",
:language "JavaScript",
:score 301.2}
{:username "jayli",
:name "lijing00333",
:language "JavaScript",
:score 298.9}
{:username "CatChen",
:name "Cat Chen",
:language "JavaScript",
:score 263.79999999999995}
{:username "taweili",
:name "David Li",
:language "Ruby",
:score 263.5}
{:username "RubyLouvre",
:name "司徒正美",
:language "JavaScript",
:score 249.5}
{:username "finscn",
:name "finscn",
:language "JavaScript",
:score 242.1}
{:username "icyleaf",
:name "Shen Wang",
:language "PHP",
:score 236.2}
{:username "wintercn",
:name "Shaofei Cheng",
:language "JavaScript",
:score 234.3}
{:username "kaichen",
:name "Kai Chen => 陈恺",
:language "Ruby",
:score 228.7}
{:username "fanzeyi",
:name "Zeray Rice",
:language "Python",
:score 223.39999999999998}
{:username "lidaobing",
:name "LI Daobing",
:language "Ruby",
:score 217.2}
{:username "tianyicui",
:name "Tianyi Cui",
:language "Ruby",
:score 206.3}
{:username "rociiu", :name "Roc Yu", :language "Ruby", :score 199.7}
{:username "chunzi", :name "chunzi", :language "Perl", :score 184.7}
{:username "jinzhu", :name "Jinzhu", :language "Ruby", :score 183.7}
{:username "fayland",
:name "Fayland Lam",
:language "Perl",
:score 176.9}
{:username "davies",
:name "Davies Lliu",
:language "Go",
:score 173.4}
{:username "halida", :name "", :language "Ruby", :score 173.1}
{:username "humiaozuzu",
:name "Maple",
:language "JavaScript",
:score 165.1}
{:username "hongqn",
:name "Qiangning Hong",
:language "Python",
:score 164.0}
{:username "rainux",
:name "Rainux Luo",
:language "Ruby",
:score 153.3}
{:username "hongru", :name "岑安", :language "JavaScript", :score 152.8}
{:username "csslayer",
:name "Weng Xuetian",
:language "C++",
:score 150.7}
{:username "sunner",
:name "Sun Zhigang",
:language "PHP",
:score 149.3}
{:username "nowa", :name "nowa", :language "Ruby", :score 148.2}
{:username "quake",
:name "quake wang",
:language "Ruby",
:score 146.7}
{:username "rednaxelafx",
:name "Krystal Mok",
:language "JavaScript",
:score 144.3}
{:username "happypeter",
:name "Peter Wang",
:language "Ruby",
:score 137.7}
{:username "ZoomQuiet",
:name "Zoom.Quiet",
:language "Python",
:score 135.4}
{:username "lgn21st",
:name "Daniel Lv",
:language "Ruby",
:score 126.9}
{:username "luikore", :name "Zete", :language "Ruby", :score 123.8}
{:username "ballantyne",
:name "Scott Ballantyne",
:language "Ruby",
:score 123.1}
{:username "Suave", :name "Suave Su", :language "PHP", :score 122.3}
{:username "qingfeng",
:name "QingFeng",
:language "Python",
:score 112.5}
{:username "jiangxin",
:name "Jiang Xin",
:language "Python",
:score 111.4}
{:username "poshboytl", :name "Terry", :language "Ruby", :score 109.7}
{:username "raecoo", :name "Raecoo", :language "Ruby", :score 108.6}
{:username "zhasm",
:name "rex zhasm",
:language "Python",
:score 107.1}
{:username "yiminghe",
:name "yiminghe",
:language "JavaScript",
:score 100.2}
{:username "5long",
:name "Whyme.Lyu",
:language "JavaScript",
:score 99.7}
{:username "yuest",
:name "Yuest Wang",
:language "JavaScript",
:score 91.0}
{:username "qichunren",
:name "Qichunren",
:language "Ruby",
:score 88.4}
{:username "yyfrankyy",
:name "yyfrankyy",
:language "JavaScript",
:score 79.3}
{:username "matthewrudy",
:name "Matthew Rudy Jacobs",
:language "Ruby",
:score 72.19999999999999}
{:username "bjin", :name "Bin Jin", :language "Haskell", :score 70.3}
{:username "yihuang",
:name "yihuang",
:language "Haskell",
:score 67.4}
{:username "yggg", :name "Sam Yang", :language "Ruby", :score 66.7}
{:username "crazycode", :name "", :language "Ruby", :score 62.7}
{:username "l4u", :name "Leo Lou", :language "Ruby", :score 53.0}
{:username "reeze", :name "Reeze Xia", :language "Ruby", :score 43.0}
{:username "brightsoftdev",
:name "bright",
:language "Objective-C",
:score 36.6}
{:username "mcxiaoke",
:name "mcxiaoke",
:language "Java",
:score 28.4}
{:username "saga", :name "Well Sun", :language "Python", :score 28.4}
{:username "enderchen",
:name "ender",
:language "Objective-C",
:score 27.6}
{:username "geekontheway",
:name "Leslie Zhao",
:language "Ruby",
:score 26.0}
{:username "mobilehub",
:name "",
:language "Objective-C",
:score 25.7}
{:username "ioz9", :name "ioz9", :language "C", :score 16.5}
{:username "zhuomingliang",
:name "Jimmy Zhuo",
:language "C",
:score 14.2}
{:username "kewin2010",
:name "Kewin Wang",
:language "Ruby",
:score 13.8}
{:username "dreamsxin", :name "Dreamszhu", :language "C", :score 13.2})
============================================================================================================================================
:username | :name | :language | :score
============================================================================================================================================
huacnlee | Jason Lee | #{"JavaScript" "Shell" "Emacs Lisp" "PHP" "Ruby"} | 15991.8
flyerhzm | Richard Huang | #{"Java" "JavaScript" "Ruby"} | 12603.3
JeffreyZhao | Jeffrey Zhao | #{"C#" "Java" "JavaScript" "CoffeeScript" "Ruby"} | 12037.2
fredwu | Fred Wu | #{"JavaScript" "CoffeeScript" "PHP" "Ruby" "Python"} | 11997.0
imakewebthings | Caleb Troughton | #{"JavaScript" "CoffeeScript" "Ruby" "Python"} | 8745.7
tualatrix | Tualatrix Chou | #{"ActionScript" "C" "C++" "JavaScript" "Objective-C" "Shell" "VimL" "Ruby" "Python"} | 7464.9
fengmk2 | fengmk2 | #{"C++" "JavaScript" "Python"} | 6240.6
JacksonTian | Jackson Tian | #{"Java" "C++" "JavaScript"} | 5812.8
saberma | saberma | #{"ActionScript" "JavaScript" "Objective-C" "Shell" "VimL" "PHP" "Ruby"} | 5453.4
tianyicui | Tianyi Cui | #{"Go" "JavaScript" "Common Lisp" "Shell" "Haskell" "Ruby" "Python"} | 5403.9
killme2008 | dennis zhuang | #{"Java" "C++" "Clojure" "Scala" "JavaScript" "Erlang"} | 5101.5
chaoslawful | Wang, Xiaozhe | #{"Java" "C" "C++" "Perl" "Emacs Lisp" "Erlang"} | 5074.2
ashchan | James Chen | #{"C++" "JavaScript" "Objective-C" "Perl" "Shell" "VimL" "Ruby"} | 5052.6
lepture | Hsiaoming Yang | #{"JavaScript" "Shell" "VimL" "CoffeeScript" "Python"} | 5032.2
kissyteam | kissyteam | #{"Java" "JavaScript" "PHP"} | 4671.0
qiao | Xueqiao Xu | #{"Scheme" "JavaScript" "Common Lisp" "Shell" "VimL" "CoffeeScript" "Ruby" "Python"} | 4295.9
hooopo | Hooopo | #{"JavaScript" "Ruby" "Erlang"} | 4185.6
livid | Xin Liu | #{"JavaScript" "Ruby" "Python"} | 4140.3
yaoweibin | Weibin Yao(姚伟斌) | #{"Java" "C" "Perl" "Ruby"} | 4044.6
zzdhidden | hidden | #{"C" "C++" "JavaScript" "Objective-C" "Shell" "VimL" "Ruby"} | 3973.6
robin | Robin Lu | #{"Objective-C" "Ruby" "Erlang"} | 3880.7
sishen | Dingding Ye | #{"C" "JavaScript" "Objective-C" "Emacs Lisp" "CoffeeScript" "Ruby" "Erlang"} | 3751.8
shellex | Shellex Wai | #{"C++" "Go" "JavaScript" "Shell" "VimL" "Haskell" "PHP" "Python"} | 3664.7
sunng87 | Sun Ning | #{"Java" "Clojure" "JavaScript" "Perl" "Python"} | 3522.3
lzyy | lzyy | #{"JavaScript" "PHP" "Python"} | 3492.9
fanzeyi | Zeray Rice | #{"C" "JavaScript" "Ruby" "Python"} | 3414.4
rainux | Rainux Luo | #{"Shell" "Emacs Lisp" "VimL" "Lua" "Ruby" "Python"} | 3382.5
ballantyne | Scott Ballantyne | #{"C++" "JavaScript" "Objective-C" "PHP" "Ruby"} | 3114.9
thoughtworks | ThoughtWorks Inc. | #{"Java" "C++" "JavaScript" "Objective-C" "Ruby" "Python"} | 3032.7
chenshuo | Shuo Chen | #{"C" "C++"} | 2919.9
lgn21st | Daniel Lv | #{"C++" "JavaScript" "Objective-C" "CoffeeScript" "Ruby"} | 2918.4
phus | Phus Lu | #{"C" "C++" "Go" "JavaScript" "Shell" "VimL" "Erlang" "Python"} | 2790.6
kaichen | Kai Chen => 陈恺 | #{"C++" "JavaScript" "Shell" "Ruby"} | 2782.2
ZoomQuiet | Zoom.Quiet | #{"Scheme" "JavaScript" "Shell" "Haskell" "Python"} | 2763.7
fayland | Fayland Lam | #{"JavaScript" "Perl" "Shell"} | 2692.2
laruence | Xinchen Hui | #{"ActionScript" "C" "PHP"} | 2593.1
CatChen | Cat Chen | #{"JavaScript" "Perl" "Python"} | 2534.7
chloerei | Rei | #{"C++" "JavaScript" "VimL" "Ruby"} | 2524.0
jinzhu | Jinzhu | #{"JavaScript" "Perl" "VimL" "Ruby"} | 2414.1
bububa | Prof Syd Xu | #{"C" "C++" "JavaScript" "Objective-C" "Shell" "PHP" "Ruby" "Python"} | 2363.1
wintercn | Shaofei Cheng | #{"JavaScript" "PHP"} | 2333.6
lidaobing | LI Daobing | #{"Java" "C++" "Go" "JavaScript" "PHP" "Ruby" "Python" "Nemerle"} | 2318.1
quake | quake wang | #{"C#" "Java" "C" "JavaScript" "Shell" "Ruby"} | 2253.0
yuest | Yuest Wang | #{"JavaScript" "Emacs Lisp" "CoffeeScript" "Lua" "Ruby" "Python"} | 2212.5
chunzi | chunzi | #{"JavaScript" "Perl" "VimL"} | 2166.4
sofish | sofish | #{"JavaScript"} | 2136.0
yiminghe | yiminghe | #{"ActionScript" "Java" "C++" "JavaScript" "Python"} | 2130.0
vicalloy | vicalloy | #{"JavaScript" "VimL" "Ruby" "Python"} | 2082.7
poshboytl | Terry | #{"C++" "JavaScript" "Emacs Lisp" "VimL" "CoffeeScript" "Ruby"} | 2072.4
happypeter | Peter Wang | #{"C" "C++" "JavaScript" "Shell" "VimL" "Ruby"} | 1981.8
pluskid | Chiyuan Zhang | #{"C" "C++" "JavaScript" "Ruby" "Python"} | 1910.1
jayli | lijing00333 | #{"JavaScript" "Shell" "PHP"} | 1902.5
liruqi | liruqi | #{"Vala" "C" "JavaScript" "Objective-C" "Shell" "PHP" "Python"} | 1855.2
halida | | #{"C" "JavaScript" "Ruby" "Python"} | 1854.6
qingfeng | QingFeng | #{"Java" "C++" "JavaScript" "Lua" "Python"} | 1828.2
yzhang | Yuanyi Zhang | #{"JavaScript" "Objective-C" "Ruby"} | 1789.7
rociiu | Roc Yu | #{"JavaScript" "VimL" "Ruby" "Python"} | 1772.4
dexteryy | Dexter.Yy | #{"JavaScript" "VimL" "Python"} | 1764.1
nowa | nowa | #{"JavaScript" "Objective-C" "Ruby"} | 1737.3
taweili | David Li | #{"Java" "Clojure" "JavaScript" "Objective-C" "Ruby"} | 1623.4
lifesinger | lifesinger | #{"JavaScript"} | 1612.2
icyleaf | Shen Wang | #{"Java" "Objective-C" "Shell" "PHP"} | 1517.4
feelinglucky | mingcheng | #{"Java" "C" "VimL" "PHP"} | 1495.4
hongru | 岑安 | #{"JavaScript" "Python"} | 1446.2
matthewrudy | Matthew Rudy Jacobs | #{"Java" "JavaScript" "Ruby" "Python"} | 1442.1
luikore | Zete | #{"C" "C++" "JavaScript" "Objective-C" "VimL" "Ruby"} | 1373.5
hongqn | Qiangning Hong | #{"C" "Python"} | 1299.0
reeze | Reeze Xia | #{"C" "C++" "JavaScript" "Objective-C" "VimL" "Objective-J" "PHP" "Ruby" "Python" "Elixir"} | 1290.0
davies | Davies Lliu | #{"C" "C++" "Go" "Ruby" "Python"} | 1263.0
yihuang | yihuang | #{"JavaScript" "VimL" "Haskell" "CoffeeScript" "Python"} | 1262.7
finscn | finscn | #{"JavaScript"} | 1257.7
csslayer | Weng Xuetian | #{"C" "C++" "JavaScript"} | 1256.5
crazycode | | #{"Java" "C" "JavaScript" "Emacs Lisp" "VimL" "Lua" "Ruby"} | 1199.4
zhasm | rex zhasm | #{"JavaScript" "Shell" "VimL" "Python"} | 1145.1
tinyfool | Tinyfool | #{"Java" "JavaScript" "PHP"} | 1040.0
5long | Whyme.Lyu | #{"JavaScript" "VimL" "Ruby"} | 1004.4
brightsoftdev | bright | #{"Objective-C"} | 994.5
raecoo | Raecoo | #{"JavaScript" "Emacs Lisp" "VimL" "Ruby"} | 985.8
humiaozuzu | Maple | #{"C" "JavaScript" "Shell" "VimL" "Python"} | 956.8
bjin | Bin Jin | #{"C" "C++" "Emacs Lisp" "VimL" "Haskell"} | 943.3
Jinjiang | 勾三股四 | #{"JavaScript"} | 855.3
shuttler | BohuTANG | #{"C"} | 853.2
yggg | Sam Yang | #{"JavaScript" "Objective-C" "Ruby" "Python"} | 822.8
sunner | Sun Zhigang | #{"PHP" "Python"} | 818.6
l4u | Leo Lou | #{"C" "C++" "JavaScript" "Objective-C" "PHP" "Ruby" "Erlang" "Elixir"} | 813.3
mcxiaoke | mcxiaoke | #{"Java" "C" "Objective-C" "Shell" "Python"} | 783.0
saga | Well Sun | #{"Java" "C" "Clojure" "JavaScript" "CoffeeScript" "Lua" "Erlang" "Python"} | 783.0
geekontheway | Leslie Zhao | #{"JavaScript" "Ruby"} | 780.0
mobilehub | | #{"C" "Objective-C"} | 779.7
AlibabaTech | Alibaba | #{"Java"} | 755.6
yyfrankyy | yyfrankyy | #{"C" "JavaScript" "Objective-C" "VimL" "CoffeeScript" "Python"} | 752.3
enderchen | ender | #{"C#" "Objective-C"} | 724.5
jiangxin | Jiang Xin | #{"Java" "Perl" "Ruby" "Python"} | 697.0
RubyLouvre | 司徒正美 | #{"JavaScript"} | 667.0
ioz9 | ioz9 | #{"Java" "C" "C++" "Shell" "Python"} | 538.2
rednaxelafx | Krystal Mok | #{"Java" "JavaScript" "Ruby"} | 526.5
kewin2010 | Kewin Wang | #{"Java" "C" "JavaScript" "Ruby" "Python"} | 478.5
zhuomingliang | Jimmy Zhuo | #{"Java" "C" "Clojure" "JavaScript" "Perl" "PHP" "Lua" "Ruby" "Erlang" "Python"} | 391.5
dreamsxin | Dreamszhu | #{"Java" "C" "C++" "JavaScript" "CoffeeScript" "Python"} | 361.5
Suave | Suave Su | #{"JavaScript" "PHP" "Ruby"} | 260.7
============================================================================================================================================
===========================================================================================================================================
:username | :name | :language | :score
===========================================================================================================================================
huacnlee | Jason Lee | #{"JavaScript" "Shell" "Emacs Lisp" "PHP" "Ruby"} | 16190
flyerhzm | Richard Huang | #{"Java" "JavaScript" "Ruby"} | 13700
fredwu | Fred Wu | #{"JavaScript" "CoffeeScript" "PHP" "Ruby" "Python"} | 13091
JeffreyZhao | Jeffrey Zhao | #{"C#" "Java" "JavaScript" "CoffeeScript" "Ruby"} | 12607
imakewebthings | Caleb Troughton | #{"JavaScript" "CoffeeScript" "Ruby" "Python"} | 11127
tualatrix | Tualatrix Chou | #{"ActionScript" "C" "C++" "JavaScript" "Objective-C" "Shell" "VimL" "Ruby" "Python"} | 7557
fengmk2 | fengmk2 | #{"C++" "JavaScript" "Python"} | 6288
JacksonTian | Jackson Tian | #{"Java" "C++" "JavaScript"} | 5956
saberma | saberma | #{"ActionScript" "JavaScript" "Objective-C" "Shell" "VimL" "PHP" "Ruby"} | 5764
chaoslawful | Wang, Xiaozhe | #{"Java" "C" "C++" "Perl" "Emacs Lisp" "Erlang"} | 5458
kissyteam | kissyteam | #{"Java" "JavaScript" "PHP"} | 5433
tianyicui | Tianyi Cui | #{"Go" "JavaScript" "Common Lisp" "Shell" "Haskell" "Ruby" "Python"} | 5417
killme2008 | dennis zhuang | #{"Java" "C++" "Clojure" "Scala" "JavaScript" "Erlang"} | 5351
ashchan | James Chen | #{"C++" "JavaScript" "Objective-C" "Perl" "Shell" "VimL" "Ruby"} | 5324
lepture | Hsiaoming Yang | #{"JavaScript" "Shell" "VimL" "CoffeeScript" "Python"} | 5291
livid | Xin Liu | #{"JavaScript" "Ruby" "Python"} | 4706
qiao | Xueqiao Xu | #{"Scheme" "JavaScript" "Common Lisp" "Shell" "VimL" "CoffeeScript" "Ruby" "Python"} | 4613
zzdhidden | hidden | #{"C" "C++" "JavaScript" "Objective-C" "Shell" "VimL" "Ruby"} | 4439
yaoweibin | Weibin Yao(姚伟斌) | #{"Java" "C" "Perl" "Ruby"} | 4341
hooopo | Hooopo | #{"JavaScript" "Ruby" "Erlang"} | 4313
robin | Robin Lu | #{"Objective-C" "Ruby" "Erlang"} | 4133
shellex | Shellex Wai | #{"C++" "Go" "JavaScript" "Shell" "VimL" "Haskell" "PHP" "Python"} | 4045
sishen | Dingding Ye | #{"C" "JavaScript" "Objective-C" "Emacs Lisp" "CoffeeScript" "Ruby" "Erlang"} | 3881
sunng87 | Sun Ning | #{"Java" "Clojure" "JavaScript" "Perl" "Python"} | 3725
lzyy | lzyy | #{"JavaScript" "PHP" "Python"} | 3671
thoughtworks | ThoughtWorks Inc. | #{"Java" "C++" "JavaScript" "Objective-C" "Ruby" "Python"} | 3589
fanzeyi | Zeray Rice | #{"C" "JavaScript" "Ruby" "Python"} | 3465
rainux | Rainux Luo | #{"Shell" "Emacs Lisp" "VimL" "Lua" "Ruby" "Python"} | 3403
phus | Phus Lu | #{"C" "C++" "Go" "JavaScript" "Shell" "VimL" "Erlang" "Python"} | 3206
ballantyne | Scott Ballantyne | #{"C++" "JavaScript" "Objective-C" "PHP" "Ruby"} | 3125
chenshuo | Shuo Chen | #{"C" "C++"} | 3112
lgn21st | Daniel Lv | #{"C++" "JavaScript" "Objective-C" "CoffeeScript" "Ruby"} | 2933
kaichen | Kai Chen => 陈恺 | #{"C++" "JavaScript" "Shell" "Ruby"} | 2848
bububa | Prof Syd Xu | #{"C" "C++" "JavaScript" "Objective-C" "Shell" "PHP" "Ruby" "Python"} | 2790
ZoomQuiet | Zoom.Quiet | #{"Scheme" "JavaScript" "Shell" "Haskell" "Python"} | 2782
chloerei | Rei | #{"C++" "JavaScript" "VimL" "Ruby"} | 2765
fayland | Fayland Lam | #{"JavaScript" "Perl" "Shell"} | 2741
laruence | Xinchen Hui | #{"ActionScript" "C" "PHP"} | 2736
CatChen | Cat Chen | #{"JavaScript" "Perl" "Python"} | 2618
sofish | sofish | #{"JavaScript"} | 2564
jinzhu | Jinzhu | #{"JavaScript" "Perl" "VimL" "Ruby"} | 2463
lidaobing | LI Daobing | #{"Java" "C++" "Go" "JavaScript" "PHP" "Ruby" "Python" "Nemerle"} | 2378
wintercn | Shaofei Cheng | #{"JavaScript" "PHP"} | 2369
vicalloy | vicalloy | #{"JavaScript" "VimL" "Ruby" "Python"} | 2290
quake | quake wang | #{"C#" "Java" "C" "JavaScript" "Shell" "Ruby"} | 2287
yuest | Yuest Wang | #{"JavaScript" "Emacs Lisp" "CoffeeScript" "Lua" "Ruby" "Python"} | 2250
chunzi | chunzi | #{"JavaScript" "Perl" "VimL"} | 2208
yiminghe | yiminghe | #{"ActionScript" "Java" "C++" "JavaScript" "Python"} | 2164
poshboytl | Terry | #{"C++" "JavaScript" "Emacs Lisp" "VimL" "CoffeeScript" "Ruby"} | 2079
liruqi | liruqi | #{"Vala" "C" "JavaScript" "Objective-C" "Shell" "PHP" "Python"} | 2077
pluskid | Chiyuan Zhang | #{"C" "C++" "JavaScript" "Ruby" "Python"} | 2043
happypeter | Peter Wang | #{"C" "C++" "JavaScript" "Shell" "VimL" "Ruby"} | 2025
yzhang | Yuanyi Zhang | #{"JavaScript" "Objective-C" "Ruby"} | 2008
jayli | lijing00333 | #{"JavaScript" "Shell" "PHP"} | 2002
halida | | #{"C" "JavaScript" "Ruby" "Python"} | 1937
dexteryy | Dexter.Yy | #{"JavaScript" "VimL" "Python"} | 1885
rociiu | Roc Yu | #{"JavaScript" "VimL" "Ruby" "Python"} | 1841
qingfeng | QingFeng | #{"Java" "C++" "JavaScript" "Lua" "Python"} | 1837
nowa | nowa | #{"JavaScript" "Objective-C" "Ruby"} | 1780
taweili | David Li | #{"Java" "Clojure" "JavaScript" "Objective-C" "Ruby"} | 1716
lifesinger | lifesinger | #{"JavaScript"} | 1655
feelinglucky | mingcheng | #{"Java" "C" "VimL" "PHP"} | 1593
icyleaf | Shen Wang | #{"Java" "Objective-C" "Shell" "PHP"} | 1590
hongru | 岑安 | #{"JavaScript" "Python"} | 1490
matthewrudy | Matthew Rudy Jacobs | #{"Java" "JavaScript" "Ruby" "Python"} | 1448
luikore | Zete | #{"C" "C++" "JavaScript" "Objective-C" "VimL" "Ruby"} | 1398
finscn | finscn | #{"JavaScript"} | 1325
hongqn | Qiangning Hong | #{"C" "Python"} | 1309
csslayer | Weng Xuetian | #{"C" "C++" "JavaScript"} | 1290
reeze | Reeze Xia | #{"C" "C++" "JavaScript" "Objective-C" "VimL" "Objective-J" "PHP" "Ruby" "Python" "Elixir"} | 1290
davies | Davies Lliu | #{"C" "C++" "Go" "Ruby" "Python"} | 1279
yihuang | yihuang | #{"JavaScript" "VimL" "Haskell" "CoffeeScript" "Python"} | 1276
crazycode | | #{"Java" "C" "JavaScript" "Emacs Lisp" "VimL" "Lua" "Ruby"} | 1211
zhasm | rex zhasm | #{"JavaScript" "Shell" "VimL" "Python"} | 1170
tinyfool | Tinyfool | #{"Java" "JavaScript" "PHP"} | 1152
shuttler | BohuTANG | #{"C"} | 1040
5long | Whyme.Lyu | #{"JavaScript" "VimL" "Ruby"} | 1021
raecoo | Raecoo | #{"JavaScript" "Emacs Lisp" "VimL" "Ruby"} | 1012
humiaozuzu | Maple | #{"C" "JavaScript" "Shell" "VimL" "Python"} | 1011
brightsoftdev | bright | #{"Objective-C"} | 996
Jinjiang | 勾三股四 | #{"JavaScript"} | 989
bjin | Bin Jin | #{"C" "C++" "Emacs Lisp" "VimL" "Haskell"} | 949
AlibabaTech | Alibaba | #{"Java"} | 938
sunner | Sun Zhigang | #{"PHP" "Python"} | 839
l4u | Leo Lou | #{"C" "C++" "JavaScript" "Objective-C" "PHP" "Ruby" "Erlang" "Elixir"} | 828
yggg | Sam Yang | #{"JavaScript" "Objective-C" "Ruby" "Python"} | 827
mcxiaoke | mcxiaoke | #{"Java" "C" "Objective-C" "Shell" "Python"} | 784
saga | Well Sun | #{"Java" "C" "Clojure" "JavaScript" "CoffeeScript" "Lua" "Erlang" "Python"} | 784
geekontheway | Leslie Zhao | #{"JavaScript" "Ruby"} | 780
mobilehub | | #{"C" "Objective-C"} | 779
RubyLouvre | 司徒正美 | #{"JavaScript"} | 769
yyfrankyy | yyfrankyy | #{"C" "JavaScript" "Objective-C" "VimL" "CoffeeScript" "Python"} | 758
enderchen | ender | #{"C#" "Objective-C"} | 726
jiangxin | Jiang Xin | #{"Java" "Perl" "Ruby" "Python"} | 703
ioz9 | ioz9 | #{"Java" "C" "C++" "Shell" "Python"} | 537
rednaxelafx | Krystal Mok | #{"Java" "JavaScript" "Ruby"} | 537
kewin2010 | Kewin Wang | #{"Java" "C" "JavaScript" "Ruby" "Python"} | 478
zhuomingliang | Jimmy Zhuo | #{"Java" "C" "Clojure" "JavaScript" "Perl" "PHP" "Lua" "Ruby" "Erlang" "Python"} | 422
dreamsxin | Dreamszhu | #{"Java" "C" "C++" "JavaScript" "CoffeeScript" "Python"} | 362
Suave | Suave Su | #{"JavaScript" "PHP" "Ruby"} | 291
===========================================================================================================================================
(ns gh-cn-top-user.worker
(:require [clj-http.client :as client]))
(def api-root "https://api.github.com")
(defn search-user-in [location]
(let [url (str api-root "/legacy/user/search/" location)
resp (client/get url {:as :json})]
(take 100 (-> resp :body :users))))
(defn get-user [uid]
(let [url (str api-root "/users/" uid)
resp (client/get url {:as :json})]
(:body resp)))
(defn get-user-repos [uid]
(let [url (str api-root "/users/" uid "/repos?type=owner")
resp (client/get url {:as :json})]
(:body resp)))
(defn score [followers repos-watchers repos-forks]
(let [total-repos (count repos-watchers)]
(+ (* total-repos followers)
(* 2 (- (apply + repos-watchers) (count repos-watchers)))
(* 3 (- (apply + repos-forks) (count repos-forks))))))
(defn do-calc []
(let [china-users (search-user-in "China")]
(sort-by :score
>
(pmap (fn [u]
(let [uid (:username u)
user-data (get-user uid)
user-repos (get-user-repos uid)]
{:username (:username u)
:name (:name u)
:language (into #{} (filter #(not (nil? %)) (map :language user-repos)))
:score (score (:followers user-data)
(map :watchers user-repos)
(map #(if (:fork %) 1 (:forks %)) user-repos))}))
china-users))))
@corlin
Copy link

corlin commented Jul 19, 2012

just taged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment