Skip to content

Instantly share code, notes, and snippets.

View taranjeet's full-sized avatar

Taranjeet Singh taranjeet

View GitHub Profile
https://www.mospi.gov.in/sites/default/files/main_menu/FAQ/FAQ_CC19092023.pdf
@taranjeet
taranjeet / test1.csv
Last active December 28, 2023 10:20
test1.csv
https://wtf.tw/ref/krishnamurti.pdf
https://www.jkrishnamurti.org/content/%E2%80%98how-live-world%E2%80%99
https://www.jkrishnamurti.org/content/there-god
https://www.jkrishnamurti.org/content/chapter-54-if-you-hurt-nature-you-are-hurting-yourself
https://www.jkrishnamurti.org/content/dialogue-oneself-0
https://www.jkrishnamurti.org/content/%EF%BB%BFa-dialogue-oneself
https://www.jkrishnamurti.org/content/beginnings-learning/
https://www.jkrishnamurti.org/content/beyond-violence/
https://selfdefinition.org/krishnamurti/Jiddu_Krishnamurt_Commentaries_On_Living_1.pdf
https://selfdefinition.org/krishnamurti/Jiddu_Krishnamurt_Commentaries_On_Living_2.pdf
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
https://wtf.tw/ref/krishnamurti.pdf
https://www.jkrishnamurti.org/content/%E2%80%98how-live-world%E2%80%99
https://www.jkrishnamurti.org/content/there-god
https://www.jkrishnamurti.org/content/chapter-54-if-you-hurt-nature-you-are-hurting-yourself
https://www.jkrishnamurti.org/content/dialogue-oneself-0
https://www.jkrishnamurti.org/content/%EF%BB%BFa-dialogue-oneself
https://www.jkrishnamurti.org/content/beginnings-learning/
https://www.jkrishnamurti.org/content/beyond-violence/
https://selfdefinition.org/krishnamurti/Jiddu_Krishnamurt_Commentaries_On_Living_1.pdf
https://selfdefinition.org/krishnamurti/Jiddu_Krishnamurt_Commentaries_On_Living_2.pdf
@taranjeet
taranjeet / openapi.json
Created November 10, 2023 19:41
OpenAPI spec for Langchain RAG pipeline
{
"openapi": "3.1.0",
"info": {
"title": "Query Processing API",
"description": "API for processing and responding to text-based queries.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://app.embedchain.ai/api/v1/pipelines/9879fb1a-aea6-42da-aeea-1cece39175f2"
python manage.py runserver
python manage.py startapp logindemo
# settings.py
INSTALLED_APPS = (
# ...
'logindemo',
)
# logindemo/views.py
from django.conf import settings
from django.shortcuts import render
def render_login_page(request):
template_name = 'logindemo/index.html'
context = {}
context['app_id'] = settings.ACCOUNT_KIT_APP_ID
ACCOUNT_KIT_API_VERSION = 'v1.0'
ACCOUNT_KIT_ME_ENDPOINT_BASE_URL = 'https://graph.accountkit.com/v1.0/me'
ACCOUNT_KIT_TOKEN_EXCHANGE_BASE_URL = 'https://graph.accountkit.com/v1.0/access_token'
ACCOUNT_KIT_APP_ID = 'your-app-id'
ACCOUNT_KIT_APP_SECRET = 'your-app-secret'
# logindemo/index.html
{% extends "__base.html" %}
{% block container %}
<div class="card" style="height:400px; width:400px;">
<div class="card-body">
<h5 class="card-title">
Account Kit Login Demo