Discover gists
This file contains 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
async def start_query_knowledge_base(function_name, llm, context): | |
"""Push a frame to the TTS service; this is handy when the LLM response might take a while.""" | |
await llm.push_frame(TTSSpeakFrame("Please hold on while I look that order up for you.")) | |
async def query_knowledge_base(function_name, tool_call_id, args, llm, context, result_callback): | |
query_result = knowledge_base.get(args["query"]) | |
await result_callback({ | |
"info": json.dumps({ | |
"lookup_success": True, | |
"order_status": query_result["order_status"], |
This file contains 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
Log uploaded on Wednesday, February 12, 2025, 2:45:56 AM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4) | |
Stack XXL(Indeed.StackXXL)[ov:1.0.0]: StackXXL(1.0.0) | |
Project RimFactory Revived(spdskatr.projectrimfactory)[mv:2.8.7]: ProjectRimFactory(1.0.0) | |
Project RimFactory - Insanity(com.spdskatr.projectrimfactory.insanity): (no assemblies) | |
Project RimFactory - Materials(PRF.Materials): (no assemblies) | |
Project RimFactory - Drones(spdskatr.projectrimfactory.drones): (no assemblies) |
This file contains 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 pandas as pd | |
import numpy as np | |
from sklearn.linear_model import LinearRegression | |
from sklearn.metrics import mean_squared_error, r2_score | |
import matplotlib.pyplot as plt | |
import statsmodels.api as sm | |
df = pd.read_csv("../data/kc_house_data.csv") | |
print(df.keys()) |
This file contains 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
<?php | |
// Uses the symfony/var_dumper package for the dump() function | |
/** First we create the Event */ | |
$created = tribe_events() | |
->set_args([ | |
'title' => "Test Event", | |
'start_date' => "2025-02-14 08:00:00", | |
'end_date' => "2025-02-14 10:00:00", | |
'laws_external_id' => 123, |
This file contains 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
#include<iostream> | |
#include<vector> | |
#include<algorithm> | |
#include<queue> | |
#include<map> | |
#include<set> | |
using namespace std; | |
int find(vector<pair<int,int>> &arr, int n){ | |
This file contains 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
U9MBHkYoAAD9VgAA/AHtWvgCAAAAAAAAAAIQAR5GKAAAAAAAAPwB7Vr4AgAAAAAAAAoCdgFQRigAAP1WAAD1WO1aAAAAAAAAAAAAAgENUEYoAAAAAAAA9VjtWgAAAAAAAAAADAJnDShGHgP//Vb4AgAA7VoAAAAA27oAAAACHwIoRh4BJQAA/3gAAO1aAAAAAAAAAAAOAoUCKDIAAADwBAAAAAAAAP/eAAAAAAAADgIKeigyAAAAAAAAAAAAAAD/vAAAAAAAABACCoAoMgAAAPAEAAAAAAAA/94AAAAAAAAOAh16KDIAAAAAAAAAAAAAAP+8AAAAAAAAEgIdgCgyAAAA8AQAAAAAAAD/3gAAAAAAAA4CCocoMgAAAAAAAAAAAAAA/7wAAAAAAAAUAgqNKDIAAADwBAAAAAAAAP/eAAAAAAAADgIdhygyAAAAAAAAAAAAAAD/vAAAAAAAABYCHY0oMgAAAPAEAAAAAAAA/94AAAAAAAAOAgqUKDIAAAAAAAAAAAAAAP+8AAAAAAAAGAIKmigyAAAA8AQAAAAAAAD/3gAAAAAAAA4CHZQoMgAAAAAAAAAAAAAA/7wAAAAAAAAaAh2aKDIAAADwBAAAAAAAAP/eAAAAAAAADgIKoSgyAAAAAAAAAAAAAAD/vAAAAAAAABwCCqcoMgAAAPAEAAAAAAAA/94AAAAAAAAOAh2hKDIAAAAAAAAAAAAAAP+8AAAAAAAAHgIdpygyAAAA8AQAAAAAAAD/3gAAAAAAAA4CCq4oMgAAAAAAAAAAAAAA/7wAAAAAAAAgAgq0KDIAAADwBAAAAAAAAP/eAAAAAAAADgIdrigyAAAAAAAAAAAAAAD/vAAAAAAAACICHbQUHgAAAPgCAAAAAAAA/94AAAAAAAAOAjp6FB4AAAD4AgAAAAAAAP/eAAAAAAAADgI6fxQeAAAA+AIAAAAAAAD/3gAAAAAAAA4COoQUHgAAAPgCAAAAAAAA/94AAAAAAAAOAjqJFB4AAAD4AgAAAAAAAP/e |
This file contains 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
Script started on 2025-02-12 00:39:31+07:00 [COMMAND="/home/user/nuttx-release/run-job.sh arm-05 " TERM="xterm-256color" TTY="/dev/pts/5" COLUMNS="110" LINES="83"] | |
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh arm-05 | |
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh | |
+ job=arm-05 | |
+ [[ arm-05 == '' ]] | |
+ instance= | |
+ set | |
+ grep TMUX | |
+ true | |
+ neofetch |
This file contains 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"?> | |
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<files> | |
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\googlechromecanary.nupkg" checksum="8BDAAE355EE711CB8E0B488D79294D2E" /> | |
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\googlechromecanary.nuspec" checksum="41E684004B0A4953713D91E86D4ADFEE" /> | |
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\tools\chocolateyInstall.ps1" checksum="A4D2EE583833198167153572B68EB922" /> | |
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\tools\chocolateyuninstall.ps1" checksum="B74F0547FF3C0417FD61CA1F81F29D16" /> | |
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\tools\helpers.ps1" checksum="D4DE2647DAEE3B74ECFB1E9F9457C3EB" /> | |
</files> | |
</fileSnapshot> |
This file contains 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
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |
This file contains 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
func deleteProject(client *gitlab.Client, projectPath string, permanent bool) error { | |
// Step 1: Fetch project details | |
project, _, err := client.Projects.GetProject(projectPath, nil) | |
if err != nil { | |
return fmt.Errorf("failed to retrieve project details: %w", err) | |
} | |
if permanent { | |
// Step 2: Permanently remove the project if it's marked for deletion | |
if !project.MarkedForDeletionAt.IsZero() { |