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="ui cards" style="margin: 10px"> | |
| <div class="ui icon input" style="width: 100%"> | |
| <input type="text" placeholder="Search..." v-model="searchQuery" /> | |
| <i class="search icon"></i> | |
| </div> | |
| <div | |
| class="card ui fluid" | |
| v-for="product in searchedProducts" | |
| :key="product.id" |
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 speech_recognition as sr | |
| import pyttsx3 | |
| import openai | |
| openai.api_key = "Your API Key" | |
| engine = pyttsx3.init() | |
| voices = engine.getProperty('voices') | |
| engine.setProperty('voices', voices[1].id) |
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
| /* The solution found here: http://www.aspsnippets.com/Articles/Change-URL-in-Browser-Address-Bar-without-reloading-using-JavaScript-and-jQuery.aspx */ | |
| /** HTML5 History pushState method | |
| * The pushState method works similar to window.location but it does not refresh or reload the page and it will modify the URL even if the page does not exists. The pushState method actually inserts an entry into the history of the browsers which allows us to go back and forth using the browser’s forward and back buttons. | |
| * The pushState method accepts the following three parameters. | |
| * 1. State object: - The state object is a JavaScript object which can contain any details about the page and must be serializable. | |
| * 2. Title: - The title of the page. | |
| * 3. URL – The URL of the page. | |
| */ |
OlderNewer