How I built a post recommendation feature for my blog using text embeddings, GPT-4 and ChromaDB with LangChain| Ishan Das Sharma
Featured Photo by energepic.com I’ve had a love-hate relationship with Bootstrap for a long time. While I love how fast it lets me get going, I absolutely hate the cookie cutter vibe of most of the stuff that I end up making with it. Bootswatch is awesome, and I know that I could customize my theme with SASS variables, but that adds a build step, which is additional complexity that I want to avoid when I am making business/CRUD applications.| Ishan Das Sharma
The following script can be used to start a container inside a particular network. Usage example: 1 2 ./start-in-network redis ./start-in-network vad1mo/hello-world-rest 5050 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #!/usr/bin/zsh if [ $# -eq 0 ] then echo "syntax: ./start-in-network container-name [container port binding]" echo "You must provide at least container name" exit 1 fi docker_container_id="" if [ $# -eq 1 ] then docker_container_id=$(docker run -d $1) else docker_container_id=...| Ishan Das Sharma
Given two unix timestamps, this Python script fetches all the leads received by a particular Facebook Lead Ads form using the Facebook v14 Graph API. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 import json import requests # Constants ACCESS_TOKEN="YOUR_ACCESS_TOKEN" LIMIT=500 FROM_TIMESTAMP=1678613400 UPTO_TIMESTAMP=1678704000 FORM_ID=12341241244 def create_api_url(form_id): return f"https://graph.| Ishan Das Sharma