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
#!/usr/bin/env gnuplot | |
## We are plotting a time-series data, Time in `HH:MM` is separated by a space with their respective Number, you can think of the number as the Number of Users of an Application. Here is a snippet of the input file "input.txt" (remove the hashes, of course): | |
#12:00 2345 | |
#12:15 5084 | |
#12:30 2490 | |
#12:45 3490 | |
#13:00 4567 | |
#13:15 4240 |
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
class clone_on_update(object): | |
"""Descriptor to clone the model instance when any field | |
is updated. This is meant to be set as a decorator on `save` | |
method of the model. | |
Initialization Args: | |
- `condition` (str/callable) [Optional] (default: None) | |
- `active_status_field` (str) [Optional] (default: None) | |
- `update_one_to_one` (bool) [Optional] (default: True) |