Skip to content

Instantly share code, notes, and snippets.

View tejesh0's full-sized avatar
:octocat:
๐Ÿ‘

tejesh tejesh0

:octocat:
๐Ÿ‘
View GitHub Profile
@tejesh0
tejesh0 / stacktrace.py
Created July 13, 2023 01:59
redis server connection error stacktrace
ConnectionError: Connection closed by server.
File "redis/client.py", line 1788, in run
pubsub.get_message(ignore_subscribe_messages=True, timeout=sleep_time)
File "redis/client.py", line 1679, in get_message
response = self.parse_response(block=(timeout is None), timeout=timeout)
File "redis/client.py", line 1531, in parse_response
response = self._execute(conn, try_read)
File "redis/client.py", line 1507, in _execute
[
['https: //www.pinecone.io/learn/cnn/', 'https://www.pinecone.io/learn/zero-shot-object-detection-clip/', 'https://www.pinecone.io/learn/image-search/'], ['https://www.pinecone.io/learn/rise-vector-data/', 'https://www.pinecone.io/learn/clip/', 'https://www.pinecone.io/learn/image-search/'], ['https://www.pinecone.io/learn/transfer-learning/', 'https://www.pinecone.io/learn/class-activation-maps/', 'https://www.pinecone.io/learn/mem-semantic-search/'], ['https://www.pinecone.io/learn/zero-shot-object-detection-clip/', 'https://www.pinecone.io/learn/cnn/', 'https://www.pinecone.io/learn/classifier-train-vector-search/'], ['https://www.pinecone.io/learn/color-histograms/', 'https://www.pinecone.io/learn/nyckel-ml-automation/', 'https://www.pinecone.io/learn/clip-image-search/'], ['https://www.pinecone.io/learn/cnn/', 'https://www.pinecone.io/learn/vector-database/', 'https://www.pinecone.io/learn/classifier-train-vector-search/'], ['https://www.pinecone.io/learn/class-activation-maps/', 'https://www.pinecon
@tejesh0
tejesh0 / onboarding_insta_username_screen_reference_template.html
Created April 30, 2022 17:42
onboarding_insta_username_screen_reference_template.html
<div class="bg-white py-16 sm:py-24">
<div class="relative sm:py-16">
<div aria-hidden="true" class="hidden sm:block">
<div class="absolute inset-y-0 left-0 w-1/2 bg-gray-50 rounded-r-3xl"></div>
<svg class="absolute top-8 left-1/2 -ml-3" width="404" height="392" fill="none" viewBox="0 0 404 392">
<defs>
<pattern id="8228f071-bcee-4ec8-905a-2a059a2cc4fb" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
<rect x="0" y="0" width="4" height="4" class="text-gray-200" fill="currentColor" />
</pattern>
</defs>
@tejesh0
tejesh0 / Django_Default_Config.md
Created September 27, 2021 03:59 — forked from singerng/Django_Default_Config.md
Config for Django/Pipenv/Gunicorn/Nginx/Systemd.

Reasonable default configuration for a web app that uses Django and the following dependencies:

  • Pipenv: Python package manager
  • Gunicorn: WSGI server
  • Nginx: Static webserver passing to gunicorn, handling SSL, etc.
  • Systemd: Used to load Gunicorn on startup

This is my goto for setting up projects.

@tejesh0
tejesh0 / sunburst.html
Created August 24, 2019 11:55
Sunburst using Vega JS
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 600,
"height": 600,
"padding": 5,
"autosize": "none",
"data": [
{
"name": "tree",
"url": "https://vega.github.io/editor/data/flare.json",
{
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
"window.zoomLevel": 1,
"window.title": "${separator}${rootName}",
"extensions.ignoreRecommendations": false
}
@tejesh0
tejesh0 / index.html
Created January 21, 2018 05:29
center aligned stacked bar chart (pyramid chart)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Pyramid Chart</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
#pyramid_chart {
height: 32vh;
@tejesh0
tejesh0 / plot.p
Created May 12, 2016 04:53 — forked from garethrees/plot.p
Graphing apache benchmark results with gnuplot
# Output to a jpeg file
set terminal jpeg size 1280,720
# Set the aspect ratio of the graph
set size 1, 1
# The file to write to
set output "timeseries.jpg"
# The graph title
@tejesh0
tejesh0 / gist:e08d25d74cab742c8de4
Created June 25, 2015 11:04
converting scipy hieraraichal clusters to d3js json format for sunburst visualization
def tod3json(node, copy_json, child_Array):
if(node.left or node.right):
copy_json = {"name" : node.id}
copy_json["children"] = []
if(node.left):
child_Array = tod3json(node.left, copy_json, child_Array)
# print child_Array