Tag Archives: intervals

Capturing and Posting Video Screenshots at Random Intervals – Python Dev Feed

Capturing and Posting Video Screenshots at Random Intervals I recently created a couple of bot Twitter accounts, @ScreenshotsVice which shares screencaps from episodes of “Miami Vice” and @Pasolinibot which shares caps from the filmography of Pier Paolo Pasolini, both at regular intervals. The way these accounts are managed are that, when a cronjob is triggered,…

Read More

Leetcode 56: Merge Intervals – Python Dev Feed

Leetcode 56: Merge Intervals Problem statement:https://leetcode.com/problems/merge-intervals/ Straight forward solution is to sort the intervals by start time, iterate them and check if two intervals overlap. If they overlap we take the union of those intervals; Otherwise, we take both of them. Python class Solution: def merge(self, intervals: List[List[int]]) -> List[List[int]]: # sort intervals by start…

Read More

Schedule & send rent invoices to tenants at regular intervals using Django & AfricasTalking API – Python Dev Feed

Schedule & send rent invoices to tenants at regular intervals using Django & AfricasTalking API THE PROBLEM If you are a caretaker or a landlord of a rentals property, chances are every end of the month, you draft paper invoices and then walk door to door issuing each tenant with their specific invoice. Not only…

Read More