Skip to content

Instantly share code, notes, and snippets.

@samarism
samarism / perf_comparison_of_collision_avoidance_strategies_in_hashtables.ipynb
Created March 9, 2025 09:44
perf_comparison_of_collision_avoidance_strategies_in_hashtables.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@samarism
samarism / py.py
Last active February 4, 2020 14:49
class XLSRenderer(renderers.BaseRenderer):
# https://blogs.msdn.microsoft.com/vsofficedeveloper/2008/05/08/office-2007-file-format-mime-types-for-http-content-streaming-2/
media_type = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
format = 'xlsx'
charset = None
render_style = 'binary'
def render(self, data, accepted_media_type=None, renderer_context=None):