Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / Install.txt
Created February 11, 2025 20:19
armory v0.96 - Passed - Package Tests Results
2025-02-11 20:17:50,553 2572 [DEBUG] - XmlConfiguration is now operational
2025-02-11 20:17:50,675 2572 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:17:50,691 2572 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:17:50,691 2572 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:17:50,691 2572 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 20:17:50,691 2572 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:17:50,719 2572 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 20:17:50,719 2572 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:17:50,719 2572 [DEBUG] - Adding new typ
@kshirsagar-krn
kshirsagar-krn / bloc template
Last active February 11, 2025 20:21
bloc template using flutter/dart
// TODO: bloc use clean arthiteture
lib/
├── core/
│ ├── constants/
│ ├── errors/
│ ├── network/
│ ├── theme/
│ ├── utils/
│ └── services/
├── data/
batch_size = 1000
for i in range(0, len(data_df), batch_size):
data_batch = data_df.iloc[i:i+batch_size]
abstract_collection.add(
ids=data_batch['id'].tolist(),
embeddings=data_batch['embedding'].tolist(),
documents=data_batch['abstract'].tolist(),
metadatas=data_batch[['doi']].to_dict(orient='records')
)
@donbr
donbr / competency-questions-economics-finance.md
Created February 11, 2025 20:18
Competency Questions - economics & finance

title: Competency Questions - economics & finance author:

  • Don created: 2025-02-11 tags:
  • cq
  • competency
  • ontology
  • requirements
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 5 (Failed: 1, Cancelled 0), Incomplete: 1, Skipped: 48
[get-pr-number : parse-pr-url] + echo -n 5179
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 5179
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] + '[' m == m ']'
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS
collection_name = "paper_abstracts"
if collection_name in db_client.list_collections():
db_client.delete_collection(name=collection_name)
print('Dropped existing collection to remake')
abstract_collection = db_client.create_collection(
name=collection_name,
# define the distance metric to use when comparing vectors in this collection
metadata={"hnsw:space": "cosine"}
@jack-arturo
jack-arturo / wpf-redirect-to-previous-lesson.php
Last active February 11, 2025 20:38
Redirects users back to the previous page when accessing a restricted LearnDash lesson
<?php
/**
* Redirects users back to the previous page when accessing a restricted LearnDash lesson
*
* @param string $redirect_url The redirect URL
* @param int $post_id The post ID
* @return string The modified redirect URL
*/
function my_learndash_redirect( $redirect_url, $post_id ) {
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 20:17
ChocolateyExplorer v0.2.2.111 - Failed - Package Tests Results
<?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\ChocolateyExplorer\ChocolateyExplorer.nupkg" checksum="47420CB8EDD6D423A15E0F193CAAE544" />
<file path="C:\ProgramData\chocolatey\lib\ChocolateyExplorer\chocolateyexplorer.nuspec" checksum="FCCBF8F9821FA1BF22F991DD0A6E1AA5" />
<file path="C:\ProgramData\chocolatey\lib\ChocolateyExplorer\tools\chocolateyInstall.ps1" checksum="7DC6F6DFA57A368C4A2C60811428C37D" />
</files>
</fileSnapshot>
db_client = chromadb.PersistentClient(path="chroma_db")
@voregnev
voregnev / clear_apro.py
Created February 11, 2025 20:17
скрипт для лечения темы aspro от unserialize
import os
import re
import shutil
from datetime import datetime
import chardet
def convert_file_encoding(file_path: str, backup: bool = True) -> bool:
"""
Конвертирует файл из cp1251 в utf-8