I hereby claim:
- I am ic on github.
- I am ic (https://keybase.io/ic) on keybase.
- I have a public key ASCYkNjs13jWiZmfSKvdZQ9-gW0uXSLcfTgdaCrCjYvSSAo
To claim this, I am signing this object:
from pprint import pprint as pp | |
import chromadb | |
client = chromadb.Client() | |
collection = client.create_collection("all-my-documents") | |
# "document" is Chroma terminology. In VectorDB and others it is "chunk" | |
# And when querying with Chroma, response "units" are "documents". So better | |
# chop them finely to get good granularity, or not at all to get whole docs. |
#!/bin/bash | |
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
# This script needs to be run from the volume you wish to use. | |
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# If the disk is encrypted, you need to mount it with: | |
# |
#!/usr/bin/env bash | |
# | |
# Build Tesseract with Autotools on Darwin. | |
# | |
# Tested with a MacPorts environment. | |
# | |
# Code for a Homebrew environment is here too, but little tested. | |
# It worked at some point, but it will probably fail for 4.x. It | |
# should look like the MacPorts command, though. |
I hereby claim:
To claim this, I am signing this object:
/* | |
* About the calibration model: | |
* This calibration is very simple, and so lacks accuracy for serious use. See this script as a getting-started solution. | |
* The calibration relies on 2 points, at 400ppm and 1000ppm. The 400ppm is the assumed CO2 concentration in "fresh air". | |
* You see that this number is really inaccurate (references ranges from 350 to 390ppm). The 1000ppm comes from TODO. | |
* 150s -> ~40000ppm | |
* 0s -> ~400ppm, approximate linear growth based on Vernier's | |
* slope = 264 ppm/s; V0 = 400 | |
* Avg human 1 breath every 3-5s | |
* => 1 breath ~ +792 to +1320ppm => avg. 1056ppm, let's say 1000ppm |
#!/usr/bin/env bash | |
# | |
# Setup and prepare for visualizing the OpenSimRoot demo. | |
# | |
# Stages: | |
# * Get OpenSimRoot and its dependencies, | |
# * Get the demo data, | |
# * Execute the data crunching, | |
# * Explain how to run the visualization. |
### Keybase proof | |
I hereby claim: | |
* I am ic on github. | |
* I am ic (https://keybase.io/ic) on keybase. | |
* I have a public key whose fingerprint is C501 A1B8 1B7C 97FE C442 D4DC 953C 7658 D0B4 BCCA | |
To claim this, I am signing this object: |
" Vim syntax file | |
" Language: HTML (version 5) | |
" Maintainer: Rodrigo Machado <[email protected]> | |
" URL: http://gist.github.com/256840 | |
" Last Change: 2014 Sept 22 | |
" License: Public domain | |
" (but let me know if you liked it :) ) | |
" | |
" Note: This file just adds the new tags from HTML 5 | |
" and don't replace default html.vim syntax file |