Skip to content

Instantly share code, notes, and snippets.

@bioinfornatics
bioinfornatics / azure_foundry_for_goose.md
Last active June 20, 2026 08:34
azure foundry for goose discussion

Hey team, thanks for the detailed feedback on the PR. Before investing more time we wanted to share what we found in the codebase and get your guidance.

On the "over-engineered" point

gcpvertexai.rs in the same codebase solves the same structural problem for GCP Vertex AI: one endpoint, multiple publishers, multiple API wire formats. It is 1 226 lines (836 + 390 for formats) and is already merged.

Azure Foundry is the same situation with a wider surface:

# vulkaninfo
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
==========
VULKANINFO
@bioinfornatics
bioinfornatics / sequence_diagram_abi_stable_library.plantuml
Created September 12, 2023 07:53
sequence diagram using abi_stable_library
@startuml
App -> MyPluginInterface : use specialized defined API
MyPluginInterface -> MyPlugin : call load_from_directory
MyPlugin -> "abi_stable::library::RootModule" : call load_from_directory
"abi_stable::library::RootModule" -> MysharedLib : load .so file
@enduml
@bioinfornatics
bioinfornatics / bench_parquet_sqlite_raw.py
Last active March 19, 2020 15:29
bench parquet vs sqlite vs raw
#!/usr/bin/env python3
import sqlite3
import random
import string
from uuid import uuid4
from typing import List, Tuple
from statistics import mean
import pyarrow as pa
import pyarrow.parquet as pq
@bioinfornatics
bioinfornatics / bencher_sqlite_raw.py
Created March 17, 2020 14:12
bencher sqlite, raw text, others…
#!/usr/bin/env python3
import sqlite3
import random
import string
from uuid import uuid4
from typing import List
from statistics import mean
def random_str():
str_length = random.randint(40,50)
@bioinfornatics
bioinfornatics / pyarrow_learning.py
Last active March 17, 2020 16:02
pyarrow write 2D list into table
#!/usr/bin/env python3
import pyarrow.parquet as pq
import pyarrow as pa
import random
import string
from uuid import uuid4
def random_str():
str_length = random.randint(40,50)
return ''.join(random.choice(string.ascii_lowercase) for _ in range(str_length))
#!/usr/bin/env python3
import sqlite3
import random
import string
from uuid import uuid4
from typing import List
from statistics import mean
def random_str():
str_length = random.randint(40,50)
// ==UserScript==
// @name CDSIM
// @description CENTER DRIVEN's Combat Simulator and Combat Stats Fork
// @author XDAAST.XDaast.daltondaast.KingCrimson | Thanks to Topper42, Eferz98, KRS_L, PythEch, MrHIDEn, Panavia2, Deyhak, CodeEcho, Matthias Fuchs, Enceladus, TheLuminary, Da Xue, Quor, WildKatana, Peluski17, Eistee
// @version 5.2
// @namespace http*://*.alliances.commandandconquer.com/*/index.aspx*
// @include http*://*.alliances.commandandconquer.com/*/index.aspx*
// @icon https://www.openmerchantaccount.com/img/cdCNCTALOGObigger.png
// @updateURL https://userscripts.org/scripts/source/173566.meta.js
// @downloadURL https://userscripts.org/scripts/source/173566.user.js
#!/usrbin/env python
def getMaxRowLength( matrix ):
maxLen = 0
for i in matrix:
if len(i) > maxLen:
maxLen = len(i)
return maxLen
def computeDiag( matrix, i , j ):
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use List::MoreUtils qw(uniq);
#use Data::Dumper::Names;
use Benchmark qw(:all) ;
sub test1 {
my @tab = (["12","25","2","18","9","25","18","30","30","12","30","30","18","12"],["154","12","56","8","22","88","74","12","56","32","88","88","56","12","12","56"]);