Skip to content

Instantly share code, notes, and snippets.

View maledorak's full-sized avatar
🤔
hmmm...

Mariusz Korzekwa maledorak

🤔
hmmm...
View GitHub Profile
@hanxiao
hanxiao / testRegex.js
Last active November 14, 2024 15:40
Regex for chunking by using all semantic cues
// Updated: Aug. 20, 2024
// Run: node testRegex.js whatever.txt
// Live demo: https://jina.ai/tokenizer
// LICENSE: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
// COPYRIGHT: Jina AI
const fs = require('fs');
const util = require('util');
// Define variables for magic numbers
const MAX_HEADING_LENGTH = 7;
@iceener
iceener / index.ts
Created May 1, 2024 13:28
heyalice.app — Node.js server example
import express from 'express';
import { OpenAI } from 'openai';
const app = express();
const openai = new OpenAI({
apiKey: 'API_KEY'
});
app.use(express.json());
import anthropic
client = anthropic.Anthropic(
# defaults to os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-3-opus-20240229",
max_tokens=4000,
temperature=0,
@Artefact2
Artefact2 / README.md
Last active November 16, 2024 15:04
GGUF quantizations overview
@darkowic
darkowic / mbank-saldo.user.js
Last active November 13, 2022 21:06
mBank: Saldo transakcji
// ==UserScript==
// @name mBank Saldo
// @namespace https://gist.github.com/darkowic/f4454f06658ec2ef1e2dbe0d6e8648d2
// @version 0.1
// @description Wpływy - Wydatki = Saldo - skrypt dodaje pole "Saldo" w widoku histori transakcji dla serwisu transakcyjnego mbank.pl.
// @author https://github.com/darkowic
// @match https://online.mbank.pl/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=mbank.pl
// @grant none
// @downloadURL https://gist.github.com/darkowic/f4454f06658ec2ef1e2dbe0d6e8648d2/raw/mbank-saldo.user.js
@vaknin
vaknin / anbox.md
Last active April 8, 2024 13:07
anbox on arch
@dungsaga
dungsaga / spleeter.md
Last active July 22, 2024 00:51
Voice removal AKA karaoke creator
@slavafomin
slavafomin / git-submodules.md
Last active April 15, 2024 14:11
Git submodules best practices

Git submodules best practices

Useful commands

— Clone repository with submodules automatically:

git clone --recursive [email protected]:name/repo.git

— Initialize submodules after regular cloning:

@MicBrain
MicBrain / metatags.html
Last active November 14, 2024 14:06
The list of useful meta tags used in HTML5 documents.
<html>
<head>
<!--Recommended Meta Tags-->
<meta charset="utf-8">
<meta name="language" content="english">
<meta http-equiv="content-type" content="text/html">
<meta name="author" content=”Rafayel Mkrtchyan”>
<meta name="designer" content=”Rafayel Mkrtchyan”>
<meta name="publisher" content=”Rafayel Mkrtchyan”>