Created
December 13, 2011 22:57
-
-
Save sorenmacbeth/1474341 to your computer and use it in GitHub Desktop.
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
(defmapop decode-ybtag [json] | |
(let [{:keys [psn co vi pvi si sts ts ln ce sd lo r ua la na np nc | |
c_st g_C g_r g_c dma nv]} (json/parse-string json true)] | |
[psn co vi pvi si sts ts ln ce sd lo r ua la na np nc | |
c_st g_C g_r g_c dma nv])) | |
(defn glob-ybtag-json [pattern] | |
(let [tap (globhfs-textline pattern)] | |
(<- [!psn !co !vi !pvi !si !sts !ts !ln !ce !sd !lo !r !ua !la !na !np !nc | |
!c_st !g_C !g_r !g_c !dma !nv] | |
(tap !line) | |
(decode-ybtag !line :> | |
!psn !co !vi !pvi !si !sts !ts !ln !ce !sd !lo !r !ua !la !na !np !nc | |
!c_st !g_C !g_r !g_c !dma !nv) | |
(:distinct false)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment