Skip to content

Instantly share code, notes, and snippets.

View janLo's full-sized avatar
🤡

Jan Losinski janLo

🤡
View GitHub Profile
class ServceCallRatelimit():
def __init__(self, hass, calls_per_sec: float):
self._delay = timedelta(seconds=1.0/calls_per_sec)
self._queue = []
self._active = False
self._lock = threading.Lock()
self._next_ts = datetime.utcnow()
self._schedule = partial(track_point_in_utc_time, hass)
/**
* We need ur own slider component until
* https://github.com/mui-org/material-ui/issues/4793
* is resolved.
*/
import React, {Component} from 'react';
import {FormControl, FormHelperText, FormLabel} from 'material-ui/Form';
import collections
import contextlib
import os
import tempfile
class Capturer(object):
STDOUT_FD = 1
STDERR_FD = 2

Work times

const tracked = {}  
const all = {  
    expected: 0,  
    actual: 0  
}  
  
dv.pages('"periodic/daily"').forEach(page => {