Skip to content

Instantly share code, notes, and snippets.

View tudoanh's full-sized avatar

Đỗ Anh Tú tudoanh

View GitHub Profile
import pandas as pd
from io import StringIO
import datetime
def to_df(table_data):
df = pd.read_csv(table, delimiter=",")
return df
@tudoanh
tudoanh / commands.sql
Created April 4, 2024 00:32 — forked from anhtran/commands.sql
Cách tạo cấu hình cho tiếng Việt trong PostgreSQL (stopwords, ispell)
CREATE TEXT SEARCH DICTIONARY public.vietnamese (
TEMPLATE = pg_catalog.simple,
STOPWORDS = vietnamese
);
CREATE TEXT SEARCH CONFIGURATION public.vietnamese (
COPY = pg_catalog.english
);
ALTER TEXT SEARCH CONFIGURATION public.vietnamese
@tudoanh
tudoanh / run_llama3.py
Created April 22, 2024 02:54
Run Llama 3 8B with Llamafile
import requests
import subprocess
import os
import signal
def download_file(url, target_path):
response = requests.get(url, stream=True)
with open(target_path, "wb") as f:
for chunk in response.iter_content(chunk_size=8192):
f.write(chunk)
(function() {
'use strict';
function collectUrls() {
const urlPattern = /^https:\/\/www\.linkedin\.com\/company\/[a-zA-Z0-9-]+\/?$/;
const links = document.querySelectorAll('a');
const matchingUrls = [];
links.forEach(link => {
const href = link.href;
@tudoanh
tudoanh / hunyuan_test_1.json
Created January 16, 2025 04:24
hunyuan_test_1.json
{
"last_node_id": 83,
"last_link_id": 236,
"nodes": [
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
484,
751
@tudoanh
tudoanh / models.json
Last active July 7, 2025 18:49
CoFounder Model List
{
"chat_models": {
"gpt-4.1": {
"display_name": "GPT-4.1",
"description": "The top GPT-4.1 model, built for complex tasks. Excellent at following detailed instructions, advanced coding, and understanding very long documents. Choose this for the toughest jobs.",
"litellm_name": "azure/gpt-4.1"
},
"gpt-4.1-mini": {
"display_name": "GPT-4.1 Mini",
"description": "A balanced model offering strong performance (like GPT-4o) but faster and cheaper. Handles long text, good for coding and understanding images. Great for fast, interactive chats.",