Skip to content

Instantly share code, notes, and snippets.

View kscottz's full-sized avatar
💭
🐀 🫡 🛠️

Katherine Scott kscottz

💭
🐀 🫡 🛠️
View GitHub Profile

Minimum Viable Dioxus / Bevy Sync App

# https://github.com/rydb/bevy_dioxus_sync
pub fn app_ui() -> Element {
    let fps = use_bevy_resource::<FPS>();
    let cube_color = use_bevy_asset_singleton::<MeshMaterial3d<StandardMaterial>, _, DynamicCube>();
    let cube_rotation_speed = use_bevy_resource::<CubeRotationSpeed>();
    let cube_translation_speed = use_bevy_resource::<CubeTranslationSpeed>();
    let cube_transform = use_bevy_component_singleton::<Transform, DynamicCube>();
import requests
from collections import defaultdict
import time
def get_closed_issues_leaderboard(repo_owner, repo_name):
"""
Fetches closed issues from a public GitHub repository and generates a leaderboard
of closed issues by assignee.
Args:
colors = {
'deep pink 1':(255, 20, 147),
'peacock':(51, 161, 201),
'deep pink 3':(205, 16, 118),
'deep pink 2':(238, 18, 137),
'deep pink 4':(139, 10, 80),
'medium violet red':(199, 21, 133),
'sea shell':(255, 245, 238),
'pale goldenrod':(238, 232, 170),
'yellow':(255, 255, 0),