Integrates:
The code below displays a single paginated table with a simple filter.
Inspired by this article
# -*- coding: utf-8 -*- | |
import collections | |
import yaml | |
from rest_framework import fields | |
""" | |
Convert rest_framework.fields classes to Swagger data types according to http://swagger.io/specification/ | |
Return 'string' by default. |
import pandas as pd | |
import itertools | |
import time | |
import multiprocessing | |
from typing import Callable, Tuple, Union | |
def groupby_parallel( | |
groupby_df: pd.core.groupby.DataFrameGroupBy, | |
func: Callable[[Tuple[str, pd.DataFrame]], Union[pd.DataFrame, pd.Series]], | |
num_cpus: int = multiprocessing.cpu_count() - 1, |
from collections import defaultdict | |
from django.db.models.signals import * | |
class DisableSignals(object): | |
def __init__(self, disabled_signals=None): | |
self.stashed_signals = defaultdict(list) | |
self.disabled_signals = disabled_signals or [ | |
pre_init, post_init, | |
pre_save, post_save, |
/* Save this file as userContent.css in the chrome/ subdirectory of your Firefox profile | |
* directory. You may need to create the chrome/ subdirectory first. | |
*/ | |
@namespace url(http://www.w3.org/1999/xhtml); | |
/* multi-column layout for FF < 58 */ | |
@-moz-document url-prefix("about:reader") { | |
/* multi-column layout */ | |
#container { |
Integrates:
The code below displays a single paginated table with a simple filter.
Inspired by this article