Skip to content

Instantly share code, notes, and snippets.

```
doc_index = InMemoryExactNNIndex[Document](index_file_path='db_sample.bin')
pydantic/_migration.py:281: UserWarning: `pydantic.error_wrappers:ValidationError` has been moved to `pydantic:ValidationError`.
warnings.warn(f'`{import_path}` has been moved to `{new_location}`.')
Traceback (most recent call last):
File ".../test_book.py", line 27, in <module>
doc_index = InMemoryExactNNIndex[Document](index_file_path='db_nemesis_sample.bin')
File "...docarray/index/backends/in_memory.py", line 51, in __init__
super().__init__(db_config=db_config, **kwargs)
@0xc1c4da
0xc1c4da / lmql_babyagi.py
Created August 19, 2023 11:27
Basic BabyAGI Implementation in LMQL
import lmql
from dataclasses import dataclass
from typing import List
# Data Structures
@dataclass
class Task:
task: str
# result: str
@0xc1c4da
0xc1c4da / default.nix
Last active May 25, 2023 17:01
WIP Nix Package for Plugdata
{ lib, stdenv, cmake, pkg-config, fetchFromGitHub, ensureNewerSourcesForZipFilesHook,
xorg, freetype, alsa-lib, curl, webkitgtk, pcre, pcre2, freeglut,
util-linux, libselinux, libsepol, libthai, libdatrie, libxkbcommon, libepoxy,
libsoup, libsysprof-capture, sqlite, libpsl, python3 }:
# Test with
# nix-shell -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
# echo "src = $src" && cd $(mktemp -d) && unpackPhase && cd *
# mkdir build && cd build
# cmake -DENABLE_TESTING=0 -G"Unix Makefiles" ..
@0xc1c4da
0xc1c4da / EIP0 Shared Values.csv
Last active September 22, 2019 18:00
EIP0 Shared Values.csv circa 2018.6.3
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
"Timestamp","Besides Vitalik, who are 3 or more people in the Ethereum Community that make good role models? What do you admire in them?","What are 3 or more organizations, communities, social movements and/or ideologies that are (loosely) related to Ethereum?","What values does/should Ethereum embody? Why?","What originally attracted you to Ethereum? Why are you still here?","What is your happiest memory related to Ethereum? Why?","Is there anything in Ethereum (past/present) that frustrated you, or could have been done better?","Is there anything in the community that exhausts or tires you?","Is there anything we 'failed' or are 'failing' at?","In your mind, what would make a good Ethereum community member?","What are the values/principles you use to help guide your life?","What kind of future do you envision?","Are there any fears you hold that you think are relevant to Ethereum?","What gives your life meaning? Why?","Other Comments","Name (or leave blank for anonymous)"
"2018/05/23 10:58:27 PM GMT+7","Rhy
[
{
"networkID": 3,
"genesisHash": "0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d",
"prod": {
"number": 259,
"hash": "91825fffecb5678167273955deaddbf03c26ae04287cfda61403c0bad5ceab8d",
"bootnodes": [
"enode://7ab298cedc4185a894d21d8a4615262ec6bdce66c9b6783878258e0d5b31013d30c9038932432f70e5b2b6a5cd323bf820554fcb22fbc7b45367889522e9c449@51.15.63.93:30303",
"enode://f59e8701f18c79c5cbc7618dc7bb928d44dc2f5405c7d693dad97da2d8585975942ec6fd36d3fe608bfdc7270a34a4dd00f38cfe96b2baa24f7cd0ac28d382a1@51.15.79.88:30303",

Keybase proof

I hereby claim:

  • I am jarradh on github.
  • I am jarradhope (https://keybase.io/jarradhope) on keybase.
  • I have a public key ASCbOzK32APD6WGj7rrUztCAk0U59F3vUY4vA-6nL5oe2Qo

To claim this, I am signing this object: