Skip to content

Instantly share code, notes, and snippets.

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.
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ audacity
This starts it.
Read this article next
http://xahlee.info/UnixResource_dir/_/ldpath.html
const fetchquote = async ()=> {
const res = await fetch('https://talaikis.com/api/quotes/random/');
const jsonObject = await res.json();
console.log(jsonObject.quote)
}
fetchquote();
{
"interactionModel": {
"languageModel": {
"invocationName": "free form text",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancel"
]
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;
}
});