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 os | |
| from loguru import logger | |
| from pipecat.audio.filters.aic_filter import AICFilter | |
| from pipecat.frames.frames import Frame, InputAudioRawFrame, OutputAudioRawFrame | |
| from pipecat.pipeline.pipeline import Pipeline | |
| from pipecat.pipeline.runner import PipelineRunner | |
| from pipecat.pipeline.task import PipelineParams, PipelineTask | |
| from pipecat.processors.frame_processor import FrameDirection, FrameProcessor |
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
| .git | |
| .env | |
| db.sqlite3 | |
| /static |
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
| numbers_in_words = { | |
| 1: "one", | |
| 2: "two", | |
| 3: "three", | |
| 4: "four", | |
| 5: "five", | |
| 6: "six", | |
| 7: "seven", | |
| 8: "eight", | |
| 9: "nine", |
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
| class IpAddrKind: | |
| V4 = 1 | |
| V6 = 2 | |
| class IpAddr: | |
| def __init__(self, kind: IpAddrKind, address: str) -> None: | |
| self.kind = kind | |
| self.address = address | |
| home = IpAddr( |
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
| enum IpAddrKind { | |
| V4, | |
| V6, | |
| } | |
| struct IpAddr { | |
| kind: IpAddrKind, | |
| address: String, | |
| } |
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
| cmd.add_task { | |
| name = "fix-mosh", | |
| description = "fix mosh permission issues.", | |
| required_platforms = { "macos" }, | |
| command = function(arg) | |
| local firepower = "sudo /usr/libexec/ApplicationFirewall/socketfilterfw" | |
| -- temporarily shut firewall off | |
| cmd.run(firepower .. " --setglobalstate off") |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <opml version="2.0"> | |
| <head> | |
| <title>FreshRSS</title> | |
| <dateCreated>Sun, 25 Dec 2022 20:57:12</dateCreated> | |
| </head> | |
| <body> | |
| <outline text="APPS"> | |
| <outline text="FreshRSS releases" type="rss" xmlUrl="https://github.com/FreshRSS/FreshRSS/releases.atom" htmlUrl="https://github.com/FreshRSS/FreshRSS/" description="FreshRSS releases @ GitHub"/> | |
| </outline> |
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
| \LoadClass[12pt]{article} | |
| \usepackage{enumitem} | |
| \usepackage{fancyhdr} | |
| \usepackage{fontspec} | |
| \usepackage{geometry} | |
| \usepackage{graphicx} | |
| \usepackage{hologo} | |
| \usepackage[hidelinks]{hyperref} | |
| \usepackage{parskip} |
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
| >!a::Send {U+00E2} | |
| >!c::Send {U+00E7} | |
| >!g::Send {U+011F} | |
| >!i::Send {U+0131} | |
| >!o::Send {U+00F6} | |
| >!s::Send {U+015F} | |
| >!u::Send {U+00FC} | |
| >!+a::Send {U+00C2} | |
| >!+c::Send {U+00C7} | |
| >!+g::Send {U+011E} |
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
| -- local functions like this one are only visible (you can only acces them) from the module (file). This is | |
| -- a good practice to not pollute global namespace with things that are not supposed to be there. | |
| -- This function just check if 2 rectangles collides and returns true or false. | |
| local function checkCollision(a, b) | |
| return a.x < b.x + b.w and | |
| a.x + a.w > b.x and | |
| a.y < b.y + b.h and | |
| a.h + a.y > b.y | |
| end |
NewerOlder