The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
function
Posted by: halesss | October 20, 2010 @ 10:33am
Ruby Code
[
Download
]
def f(key,value) "function(v) { data = v.values[0].data; dt = eval('(' + data + ')') value = dt['#{key}'] if (value == '#{value}') { return [data]; } return []; }" mr.map(mapfunc, :keep => true) json_array = mr.run objects_array = json_array.map {|s| JSON.parse s} end
Syntax Highlighting
[
Open in new window
]
Author Comments
this is a part of the code
Rating
4.47 / 8
59 Votes
http://codebin.yi.org/903
page generated in 0.01 seconds