Skip to content

Instantly share code, notes, and snippets.

def load_parquet_file(file_path: str) -> pd.DataFrame:
return pd.read_parquet(file_path)
data_df = None
i = 0
for file_path in glob.glob(os.path.join('data/', 'abstracts_*.parquet')):
print('Loading data from {}'.format(file_path))
file_df = load_parquet_file(file_path)
if data_df is None:
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 20:11
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 11:10:59 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
@lvanasse
lvanasse / ci-risc-v-01.log
Created February 11, 2025 20:10
[risc-v-01] CI Log for nuttx @ 381d3fe64f4da2b09f12bd8f0cd2d1f07d86b3d3 / nuttx-apps @ fb0c1e10ded2a6fb9f066b9893662cbcc86e4646
fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [-Wcpp]
adc_main.c:312:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [-Wcpp]
Script started on 2025-02-11 19:59:52+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh risc-v-01" <not executed on terminal>]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=risc-v-01
+ neofetch
.-/+oossssoo+/-.
`:+ssssssssssssssssss+:`
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 20:10
fossamail v38.2.0 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2270195762-3335344054-2709297393-1000</user>
<keys>
<key installerType="Unknown" displayName="FossaMail 38.2.0 (x64 en-US)" displayVersion="38.2.0">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FossaMail 38.2.0 (x64 en-US)</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\FossaMail]]></InstallLocation>
<UninstallString><![CDATA[C:\Program Files\FossaMail\uninstall\helper.exe]]></UninstallString>
# For setting up the vector db
import chromadb
# For working with our data files
import os
import glob
# For handling our data
import pandas as pd
import numpy as np
@phillipwilhelm
phillipwilhelm / gk-allow-logged-out.php
Created February 11, 2025 20:10 — forked from rafaehlers/gk-allow-logged-out.php
Allow logged-out users to edit entrie
<?php //DO NOT COPY THIS LINE
// Removes Edit Entry "nonce" validation. Edit Entry checks whether an user has the ability to edit an entry, but it also checks a "nonce" to make sure that the Edit Entry link was recently generated by the current user visiting the page. This can sometimes cause problems; this code removes that "nonce" validation.
add_filter( 'gravityview/edit_entry/verify_nonce', '__return_true' );
// allow non logged-in users to edit entries
add_filter( 'gravityview/edit_entry/user_can_edit_entry', '__return_true' );
add_filter( 'gravityview/capabilities/allow_logged_out', '__return_true' );
add_filter( 'user_has_cap', function( $caps ) {
$caps['gravityview_edit_others_entries'] = true;
pip install chromadb
pip install pandas
pip install scikit-learn # This is where we'll grab the cosine similarity function
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 20:09
Rimworld output log published using HugsLib
Log uploaded on Wednesday, February 12, 2025, 4:09:12 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)
HugsLib_zh(RWZH.ChinesePack.HugsLib): (no assemblies)
Combat Extended(CETeam.CombatExtended): CombatExtended(0.0.0)
Combat Extended Guns(CETeam.CombatExtendedGuns): (no assemblies)
Combat Extended [zht](Spirit.CombatExtended.zht): (no assemblies)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:25.2.3), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), Van
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 20:09
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 12:09:08 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
P-Music(Peppsen.PMusic): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
SimpleCameraSetting(ray1203.SimpleCameraSetting): BetterKeybinding(av:5.0.0,fv:5.5.109), SimpleCameraSetting(1.0.0)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Smart Farming(Owlchemist.SmartFarming): 0Harmony(2.3.3), SmartFarming(av:1.13.1,fv:1.13.1)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)