Skip to content

Instantly share code, notes, and snippets.

View Kilerd's full-sized avatar
👺
找 Java / Rust 工作

Kilerd Chan Kilerd

👺
找 Java / Rust 工作
View GitHub Profile
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 24, 2024 06:43
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@akaIDIOT
akaIDIOT / periodic.py
Created March 26, 2015 21:26
Call something periodically using asyncio
import asyncio
def call_periodic(interval, callback, *args, **kwargs):
# get loop as a kwarg or take the default one
loop = kwargs.get('loop') or asyncio.get_event_loop()
# record the loop's time when call_periodic was called
start = loop.time()
def run(handle):