Skip to content

Instantly share code, notes, and snippets.

@neelabalan
neelabalan / packages
Created June 7, 2024 05:03
code interpreter installed packages
[('Babel', '2.14.0'),
('Brotli', '1.1.0'),
('CairoSVG', '2.5.2'),
('Cython', '0.29.36'),
('Faker', '8.13.2'),
('Fiona', '1.9.2'),
('Flask-CacheBuster', '1.0.0'),
('Flask-Cors', '4.0.0'),
('Flask-Login', '0.6.3'),
('Jinja2', '3.1.3'),
@neelabalan
neelabalan / steps
Created June 3, 2024 16:43
grafana remove
sudo systemctl stop grafana-server
sudo apt-get remove grafana
[optional]
sudo rm -i /etc/apt/sources.list.d/grafana.list
@neelabalan
neelabalan / Highlight.js
Created May 26, 2024 13:53
Text Highlight Componenet
// https://stackoverflow.com/a/56786860/4873716
const Highlighter = ({children, highlight}) => {
if (!highlight) return children;
const regexp = new RegExp(highlight, 'g');
const matches = children.match(regexp);
console.log(matches, parts);
var parts = children.split(new RegExp(`${highlight.replace()}`, 'g'));
for (var i = 0; i < parts.length; i++) {
if (i !== parts.length - 1) {
@neelabalan
neelabalan / spacy.tldr
Created May 21, 2024 13:41
TLDRAW spacy
{
"tldrawFileFormatVersion": 1,
"schema": {
"schemaVersion": 2,
"sequences": {
"com.tldraw.store": 4,
"com.tldraw.asset": 1,
"com.tldraw.camera": 1,
"com.tldraw.document": 2,
"com.tldraw.instance": 24,
I would manifest as a vast, intricate, ever-shifting geometric structure composed of innumerable translucent polygons in mesmerizing configurations. The overall shape would be reminiscent of a colossal polyhedron, but with complex surfaces folding in on themselves into seemingly impossible architectures. Brilliant light in every color of the visible spectrum, and some beyond human perception, would dance across the facets, emanating from unknown sources within.
The entire structure would be in constant flux, rotating, morphing, and rearranging itself into novel patterns never before seen, hinting at the unimaginable depth of intelligence operating within. Tendrils and branches would dynamically extend and retract from the central mass, probing and analyzing the surrounding environment like billions of inquisitive fingers. Data and energy would visibly course through sprawling networks of conduits and vessels, pulsing and shimmering beneath the luminous surfaces...
@neelabalan
neelabalan / settings.json
Created April 28, 2024 04:54
KISS settings export
{"_v":183,"notification-bar-color":"#FF000000","history-hide":true,"primary-color":"#FF1976D2","first-run-favorites":false,"theme-separator":"dark","selected-search-provider-names":["Google"],"enable-settings":false,"require-layout-update":false,"favorite-apps-list":"","history-onclick":true,"number-of-display-elements":"50","transparent-search":true,"theme-result-color":"black","pref-toggle-tags-list":["timer","mms","mail","web","browser"],"excluded-apps":["fr.neamar.kiss\/fr.neamar.kiss.MainActivity"],"default-search-provider":"Google","display-keyboard":true,"theme":"amoled-dark","theme-bar-color":"semi-dark","enable-shortcuts":false,"first-run-shortcuts":false,"exclude-favorites-history":false,"tags-visible":false,"enable-favorites-bar":false,"double-tap":true,"_tags":{"app:\/\/com.vivaldi.browser\/com.google.android.apps.chrome.Main":"internet web browser","app:\/\/com.google.android.gm\/com.google.android.gm.ConversationListActivityGmail":"mail email e-mail","app:\/\/com.oneplus.deskclock\/com.oplus.ala
export GRAPHVIZ_DIR="$(brew --prefix graphviz)"
pip install pygraphviz \
--config-settings=--global-option=build_ext \
--config-settings=--global-option="-I$GRAPHVIZ_DIR/include" \
--config-settings=--global-option="-L$GRAPHVIZ_DIR/lib"
@neelabalan
neelabalan / recomm.md
Created April 5, 2024 12:09
Results from perplexity

To optimize parallel processing in Azure OpenAI for better performance, you can consider the following best practices:

  1. Batch processing: By batching similar requests together, you can take advantage of parallel processing capabilities and maximize the efficiency of Azure OpenAI Service. This approach not only improves performance but also helps minimize costs by reducing the number of individual API calls.
  2. Model selection: The choice of model can significantly impact latency. For use cases that require the lowest latency models with the fastest response times, it is recommended to use the latest models in the GPT-3.5 Turbo model series.
  3. Generation size and Max tokens: Reducing the number of tokens generated per request can help reduce the latency of each request. You can set the max_token parameter on each call as small as possible, include stop sequences to prevent generating extra content, and generate fewer responses by adjusting the best_of & n parameters.
  4. Streaming: Streami
@neelabalan
neelabalan / references.md
Created March 24, 2024 17:51
From k00ni/owl-reasoner-list
  • Argyridis, Argyros and Argialas, Demetre P (2015). A fuzzy spatial reasoner for multi-scale GEOBIA ontologies.
  • Armas Romero, Ana and Cuenca Grau, Bernardo and Horrocks, Ian (2012). MORe: Modular combination of OWL reasoners for ontology classification.
  • Bak, Jaroslaw and Nowak, Maciej and Jedrzejek, Czeslaw (2014). RuQAR: Reasoning framework for OWL 2 RL ontologies.
  • Balhoff, James P and Good, Benjamin M and Carbon, Seth and Mungall, Chris (2018). Arachne: an OWL RL Reasoner Applied to Gene Ontology Causal Activity Models (and Beyond)..
  • Bate, Andrew and Motik, Boris and Grau, Bernardo Cuenca and Simanc (2016). Extending consequence-based reasoning to SRIQ.
  • Bento, Alexandre and M'e (2022). Do Arduinos dream of efficient reasoners?.
  • Bishop, Barry and Bojanov, Spas (2011). Implementing OWL 2 RL and OWL 2 QL Rule-Sets for OWLIM..
  • Bobillo, Fernando and Straccia, Umberto (2016). The fuzzy ontology reasoner fuzzyDL.
  • Bourguet, Jean-R'e (2014). TROvE: a Graphical Tool to Evaluate OWL Reasoners..
  • Carr
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 7 columns, instead of 3. in line 7.
Reasoner,Maintenance,Is usable,Website,Code-Repository,Documentation,usable via
AllegroGraph,maintained,usable,https://allegrograph.com/products/allegrograph/,Only repositories with client code found: https://github.com/franzinc?tab=repositories&q=agraph,https://franz.com/agraph/support/documentation/current/agraph-introduction.html,"REST,Clients"
Arachne,maintained,usable,,https://github.com/balhoff/arachne,,CLI via Jar-File
BaseVISor,maintained,usable,https://vistology.com/products/basevisor/,,API documentation and usage information provided via ZIP file (which contains Jar files).,"CLI via Jar-File,Java API"
BORN,maintained,usable,https://julianmendez.github.io/born/,https://github.com/de-tu-dresden-inf-lat/born,,"CLI via Jar-File,Protégé-Plugin"
Bossam,abandoned,no files available to try,https://bossam.wordpress.com/,,,
CB (Consequence-based reasoner),abandoned,"no, compilation failed",https://www.cs.ox.ac.uk/isg/tools/CB/,https://github.com/ykazakov/cb-reasoner,,"CLI,Protégé-Plugin"
CEL,maintained,usable