Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
require 'strings web/gethttp'
|
||||
|
||||
findUnimpTasks=: ('Programming_Tasks' -.&getCategoryMembers ,&'/Omit') ([ #~ -.@e.) getCategoryMembers
|
||||
|
||||
getTagContents=: dyad define
|
||||
'starttag endtag'=. x
|
||||
('\' -.~ endtag&taketo)&.>@(starttag&E. <@((#starttag)&}.);.1 ]) y
|
||||
)
|
||||
|
||||
NB. RosettaCode Utilities
|
||||
parseTitles=: ('"title":"';'"')&getTagContents
|
||||
parseCMcontinue=:('"cmcontinue":"';'"')&getTagContents
|
||||
getCMcontquery=: ('&cmcontinue=' , urlencode)^:(0 < #)@>@parseCMcontinue
|
||||
|
||||
getCategoryMembers=: monad define
|
||||
buildqry=. 'action=query&list=categorymembers&cmtitle=Category:' , ,&'&cmlimit=500&format=json'
|
||||
url=.'http://www.rosettacode.org/w/api.php'
|
||||
uri=. url ,'?', buildqry urlencode y
|
||||
catmbrs=. qrycont=. ''
|
||||
whilst. #qrycont=. ,getCMcontquery jsondat do.
|
||||
jsondat=. '-sL' gethttp uri , qrycont
|
||||
catmbrs=. catmbrs, parseTitles jsondat
|
||||
end.
|
||||
catmbrs
|
||||
)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
4{. findUnimpTasks 'J' NB. get first 4 unimplemented tasks for J
|
||||
┌────────────────┬────────────────────────┬──────────────────────────────────┬──────────────┐
|
||||
│15 puzzle solver│Active Directory/Connect│Active Directory/Search for a user│Atomic updates│
|
||||
└────────────────┴────────────────────────┴──────────────────────────────────┴──────────────┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue