This file contains hidden or 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
from hachoir.field import Field | |
class UExponentialGolomb(Field): | |
def __init__(self, parent, name, description=None): | |
super(UExponentialGolomb, self).__init__(parent, name, description=description) | |
self._zeros = None | |
self.determine_size() | |
def determine_size(self): |
This file contains hidden or 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
from lifxlan import LifxLAN, TileChain | |
import random | |
import time | |
MAX_VAL = 65535 | |
FADE_IN_SPEED = MAX_VAL * 0.125 # 32 | |
FADE_OUT_SPEED = MAX_VAL * 0.078 # 20 | |
tiles = LifxLAN().get_device_by_name('Tiles') | |
# tiles = TileChain('d0:73:d5:33:5b:c2', '10.10.0.66') |
This file contains hidden or 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
import React, { ReactElement, useEffect, useState } from 'react' | |
import { SemanticTRANSITIONS, Transition, TransitionPropDuration } from 'semantic-ui-react' | |
interface AnimatedTransitionProps { | |
animation?: SemanticTRANSITIONS | |
duration?: number | string | TransitionPropDuration | |
children: ReactElement | |
} | |
const AnimatedTransition = ({children, animation, duration} : AnimatedTransitionProps) => { |
OlderNewer