config:
flowchart:
defaultRenderer: elk
flowchart TD
%% Data Types
Integer[Integer]:::datatype
Float[Float]:::datatype
String[String]:::datatype
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # find all refs with remotes that are deleted on the server, and delete them locally | |
| git branch -vv | grep ': gone]' | awk '{print $1}' | xargs -r git branch -D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Create a new struct type. For example: | |
| /// | |
| /// ``` | |
| /// use vortex_dtype::{struct_type, DType, PType}; | |
| /// | |
| /// let the_struct = struct_type! { | |
| /// "x" => DType::from(PType::F64), | |
| /// "y" => DType::from(PType::F64), | |
| /// }; | |
| /// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM dustynv/nano_llm:r36.4.0 | |
| RUN apt update && apt install -y gstreamer1.0-nice |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.apache.iceberg.parquet; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.apache.avro.Schema; | |
| import org.apache.avro.generic.GenericRecord; | |
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.fs.FileSystem; | |
| import org.apache.hadoop.fs.Path; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| import glob | |
| import pytesseract | |
| import multiprocessing | |
| from pdf2image import convert_from_path | |
| def ocr_pdf_to_json(pdf_path): | |
| # Convert PDF to images (one per page) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // use rand::Rng; | |
| use std::time::Instant; | |
| use zstd::{decode_all, stream::encode_all}; | |
| fn main() -> Result<(), Box<dyn std::error::Error>> { | |
| // Generate sample data - 1 million random u32 integers | |
| let count = 64_000; | |
| println!("Generating {} random integers...", count); | |
| // let mut rng = rand::rng(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| `java-library` | |
| `maven-publish` | |
| `signing` | |
| } | |
| val tokenizerSharedLibrary by configurations.creating { | |
| isCanBeConsumed = false | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| A simple simulation of the Monty Hall problem | |
| """ | |
| import random | |
| ROUNDS = 100_000 | |
| WINS = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyarrow.parquet as pq | |
| import vortex as vx | |
| import numpy as np | |
| from time import time | |
| # taken from OpenAI text-3-small | |
| EMBED_DIM = 1536 | |
| N_EMBEDS = 1 |
NewerOlder