Last active
January 2, 2016 05:19
-
-
Save janherich/8255881 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
(->> data | |
(filter (comp #(re-find #"^([0-9.]+)\s%$" %) #(get % 5))) | |
(sort-by (comp #(read-string (second (re-find #"^([0-9.]+)\s%$" %))) #(get % 5)) >) | |
(into [])) |
: username and : password are actuall strings....sorry forgot to include them
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Jan......I guess yiu should bill me at the end of the month....buging you alot ....now I have this nested user data which looks like this
{"" {:username "", :password "$2a$10$ZdhEftfkQ61/k0GvXDaLGOtSRw5q6D3ZjfPdXx8GymrBxf3Bhr1fi", :roles #{:administrator}}, "" {:username "", :password "$2a$10$Au1gLG/5K/EJ0CPpBtMYLu7URjzkpyqv2wIC72oJows9I4xOcwlGa", :roles #{:user}},.......} ......have u worked with datatables...want to display username and role using a datatable like so....var oTable;
$(document).ready(function() {
} );
but no luck yet...any Ideas please?
Cheers!