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 math | |
import time | |
import os | |
from rich.console import Console | |
from rich.live import Live | |
from rich.text import Text | |
console = Console() | |
console.clear() |
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
"""Provides a modal dialog for selecting a theme.""" | |
from __future__ import annotations | |
from textual import on | |
from textual.app import ComposeResult | |
from textual.binding import Binding | |
from textual.containers import Horizontal | |
from textual.containers import Vertical | |
from textual.screen import ModalScreen |
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
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 5.69.0" | |
} | |
} | |
} | |
provider "aws" { |
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
""" | |
Conway's Game of Life implementation using Rich for terminal visualization. | |
Author: Paul Robello | |
Email: [email protected] | |
""" | |
import random | |
from enum import Enum | |
from time import sleep |
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
"""MRE for Textual""" | |
from __future__ import annotations | |
import http | |
import requests | |
from textual import on, work | |
from textual.app import App, ComposeResult | |
from textual.message import Message |
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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
attrs = "*" | |
certifi = "*" | |
requests-file = "*" | |
#textual = { version = "==0.74.0", extras = ["syntax"] } |
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
"""Theme manager for Textual""" | |
import os | |
from typing import Dict, List, Literal, Optional, TypeAlias | |
import simplejson as json | |
from textual.design import ColorSystem | |
ThemeMode: TypeAlias = Literal["dark", "light"] | |
ThemeModes: List[ThemeMode] = ["dark", "light"] |
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
#!/usr/bin/env python | |
from textual.app import App, ComposeResult | |
from textual.widgets import Header, Footer, Log, Label, ListView, ListItem | |
from textual.containers import Horizontal | |
class ListApp(App[None]): | |
def compose(self) -> ComposeResult: | |
yield Header(show_clock=True) | |
with Footer(): |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
using NativeWebSocket; | |
using PAR; | |
using Sirenix.OdinInspector; | |
using Sirenix.Utilities; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Websocket | |
{ | |
public interface IWsMessageFilterPredicate | |
{ | |
bool Evaluate(IWsMessage msg); | |
} |
NewerOlder