Skip to content

Instantly share code, notes, and snippets.

View niole's full-sized avatar
🕳️
asdf

niole niole

🕳️
asdf
View GitHub Profile
@niole
niole / mlflowtest.py
Last active July 23, 2025 20:45
mlflow logging library support test
from mlflow import MlflowClient
import mlflow
client = MlflowClient()
experiment_name = "my_experiment"
mlflow.set_experiment(experiment_name)
def get_experiment_id() -> str:
#!/bin/bash
special_content=$5
prefix=$4
for ((i=0;i<$1;i++))
do
fname=$(pwd)/$prefix-$i.txt
dd if=/dev/urandom of=$fname bs=$2 count=$3
echo $special_content >> $fname
done
const path = require('path');
const fs = require('fs');
const isImportPattern = /^\s*import/;
const isFromPackagePattern = /@domino\/(.+)'|@domino\/(.+)"/;
const isLernaPackageImport = /@domino\/(.*)/;
const isExportPattern = /^\s*export/;
const getExportNameMatcher = /^\s*export\s*{\s*default\s*as\s*(.*)\s*}\s*from\s*.+/;
/*
* implement a set like data structure with insert, remove, and GetRandomElement with equal probability per element
*/
function Set(ints) {
this._ints = []; //this is going to be used in get random element
this._hashmap = {}; //map from int to index in ints
this._setInitialData(ints);
}