This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import json | |
import openai | |
from langchain.chains import ConversationalRetrievalChain, RetrievalQA | |
from langchain.chat_models import ChatOpenAI | |
from langchain.document_loaders import DirectoryLoader, TextLoader | |
from langchain.embeddings import OpenAIEmbeddings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import openai | |
from langchain.chains import ConversationalRetrievalChain, RetrievalQA | |
from langchain.chat_models import ChatOpenAI | |
from langchain.document_loaders import DirectoryLoader, TextLoader | |
from langchain.embeddings import OpenAIEmbeddings | |
from langchain.indexes import VectorstoreIndexCreator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import openai | |
import numpy as np | |
import pandas as pd | |
import requests | |
from ast import literal_eval | |
def lambda_handler(event, context): | |
question = event.get('question', 'Default Question') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label" : "Set Default DevHub Org - sf config set", | |
"type" : "shell", | |
"command" : "sf", | |
"args":[ | |
"config", | |
"set", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="slds-card"> | |
<div class="slds-box"> | |
<lightning-button variant="brand" label="Begin Barcode Scan" title="Begin Barcode Scan" | |
onclick={handleBarcodeClick} class="slds-m-left_x-small"> | |
</lightning-button> | |
<p class="slds-m-left_x-small"> | |
{scannedBarcode} | |
</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<lightning-card > | |
<lightning-input type="text" label="Text Box in LWC : " value={customText} onchange={handleFormInputChange} ></lightning-input> | |
<div> </div> | |
</lightning-card> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.defineProperty(CardElement.prototype, "lwcRef", { | |
get: function () { | |
if (this._lwcRef) { | |
return this._lwcRef; | |
} | |
}, | |
set: function (value) { | |
this._lwcRef = value; | |
}, | |
enumerable: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="slds-text-heading_large slds-text-align_left"> | |
Lightning DataTable - Infinite Scrolling | |
</div> | |
<br /> | |
<div class="slds-text-heading_medium"> Demo using @wire decorator </div> | |
<br /> | |
<div class="demo-only" style="padding:0.5rem;background:#16325c"> | |
<div class="slds-text-color_inverse slds-text-heading_small"> | |
If you keep scrolling & search for first employee name, you would find many <span style="background:#ff0000"> duplicate rows. </span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> <span class="slds-badge slds-badge_inverse badge"> Total Records in Table - {totalRecords} </span> </div> | |
<div style="height: 300px"> | |
<lightning-datatable key-field="empId" data={dataRow} columns={columns} enable-infinite-loading="true" | |
onloadmore={loadMoreData} load-more-offset="20" | |
> </lightning-datatable> | |
</div> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @desc Apex Controller class for LWC Data Table Demo | |
* @Author Jitendra Zaa | |
* @Date June 4 2020 | |
*/ | |
public with sharing class DataTableDemoController { | |
public class DataTableWrapper{ | |
@AuraEnabled | |
public String empName; |
NewerOlder