Skip to content

Instantly share code, notes, and snippets.

@karenetheridge
karenetheridge / gist:59266afb6b0dc338914e
Created June 25, 2015 17:49
ether's notes on LMU removal
List::MoreUtils:
Moose - zip, first_index, uniq, natatime
MooseX::ClassAttribute - uniq
Dist::Zilla - uniq, any - patched -- follow up.
MooseX::Runnable - uniq
perlfaq - uniq
[@Git] - uniq, first_index - https://github.com/madsen/dist-zilla-plugin-git/pull/23
Pod::Weaver::Section::Contributors - uniq
MooseX::Declare - uniq
Email::Sender - uniq
@arikfr
arikfr / query.py
Created May 21, 2015 15:19
re:dash Python datasource join example
# get existing queries results
users = get_query_result(132) # this one has {id, name}
events_by_users = get_query_result(131) # this one has {user_id, events count}
# actual merging. can be replaced with helper function and/or some Pandas code
events_dict = {}
for row in events_by_users['rows']:
events_dict[row['user_id']] = row['count']
for row in users['rows']: