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
| cd py_environments/[project name] | |
| source bin/activate | |
| //Activates the virual environment | |
| cd src | |
| //once pip install everything you want in your virual environment save to requirments.txt | |
| pip freeze > requirements.txt | |
| // if you change a model | |
| src$ python manage.py makemigrations | |
| src$ python manage.py migrate | |
| // starting your web app. |
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
| LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ audacity | |
| This starts it. | |
| Read this article next | |
| http://xahlee.info/UnixResource_dir/_/ldpath.html |
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
| const fetchquote = async ()=> { | |
| const res = await fetch('https://talaikis.com/api/quotes/random/'); | |
| const jsonObject = await res.json(); | |
| console.log(jsonObject.quote) | |
| } | |
| fetchquote(); |
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
| { | |
| "interactionModel": { | |
| "languageModel": { | |
| "invocationName": "free form text", | |
| "intents": [ | |
| { | |
| "name": "AMAZON.CancelIntent", | |
| "samples": [ | |
| "cancel" | |
| ] |
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
| let querySentance = ''; | |
| let wordSlots = ["WordI", "WordII", "WordIII", "WordIV", "WordV", "WordVI", "WordVII", "WordVIII", "WordIX", "WordX", "WordXI", "WordXII", "WordXIII", "WordXIV", "WordXV", "WordXVI", "WordXVII", "WordXVIII", "WordIXX", "WordXX", "WordXXI", "WordXXII", "WordXXIII", "WordXXIV", "WordXXV", "WordXXVI", "WordXXVII", "WordXXVIII", "WordIXXX", "WordXXX",]; | |
| wordSlots.forEach((word)=>{ | |
| let slot = this.event.request.intent.slots[word]; | |
| if (slot !== undefined && slot.value !== '' && slot.value !== '?' && slot.value !== null && slot.value !== undefined){ | |
| querySentance = querySentance+' '+slot.value; | |
| } | |
| }); |
OlderNewer