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 aiohttp | |
import asyncio | |
BATCH_SIZE = 20 | |
POOL_SIZE = 5 | |
async def get_content(client, url): | |
async with client.get(url) as response: | |
return await response.text() |
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, { Component } from 'react' | |
import { Button, Intent } from '@blueprintjs/core' | |
const CELL_COUNT = 7 | |
const CELL_MID_LEN = ~~(CELL_COUNT / 2) | |
class Pagination extends Component { | |
// This component implements pagination buttons such as these: | |
// ┌───┬───┬───┬───┬───┐ |
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
blueprint: | |
name: Ikea Styrbar Remote over Z2M | |
description: Control your lights with the IKEA STYRBAR remote. You can also set actions for the left and right button. | |
domain: automation | |
input: | |
transition_time: | |
name: Transition time | |
description: Transition time for the target lights in seconds | |
selector: | |
number: |
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
blueprint: | |
name: Enki Remote over Z2M | |
description: Blueprint for Enki RGB Remote over Z2M | |
domain: automation | |
input: | |
remote: | |
name: Remote | |
description: The action entity of your Enki Remote | |
selector: | |
entity: |
OlderNewer