This file contains 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
// Try edit message | |
class Node { | |
constructor(value) { | |
this.value = value; | |
this.leftNode = null; | |
this.rightNode = null; | |
} | |
addNode(newNode) { |
This file contains 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
// Try edit message | |
class Node { | |
constructor (value, nextNode) { | |
this.value = value, | |
this.nextNode = nextNode | |
} | |
} | |
class Stack { |
This file contains 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
// Local Imports | |
const nodemailer = require("nodemailer"); | |
async function sendEmail(email, subject, body) { | |
let transporter = nodemailer.createTransport({ | |
host: "smtp.gmail.com", | |
port: 587, | |
secure: false, | |
auth: { | |
user: "[email protected]", |
This file contains 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
// React | |
import React, {useState, useEffect} from "react"; | |
// Material UI | |
import { | |
Typography, | |
Snackbar | |
} from "@material-ui/core"; | |
import { makeStyles, useTheme } from "@material-ui/core/styles"; | |
import useMediaQuery from "@material-ui/core/useMediaQuery"; |
This file contains 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
{ | |
<<<<<<< HEAD | |
"_args": [ | |
[ | |
"[email protected]", | |
"/home/ayushmania/React/foodgarden_backend-master" | |
] | |
], | |
"_from": "[email protected]", | |
======= |
This file contains 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
{ | |
"message": [ | |
{ | |
"special":{ | |
"special_name": "The Impossible Burger", | |
"special_price": "Rs. 800", | |
"special_imageUrl": "https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/impossible-burger-1556115116.jpg", | |
"special_details": "Based on calories, fat, fiber and sodium, Impossible Foods edged out Beyond Meat. However, when it comes to protein and saturated fat content, Beyond Meat had a slight advantage. Both options are vegan and gluten free. Both options are vegan and gluten free. Both options are vegan and gluten free." | |
}, | |
This file contains 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
from django import template | |
import json | |
import operator | |
register = template.Library() | |
@register.filter | |
def lowerCase(value): | |
try: | |
value = value.replace("\'", "\"") |
This file contains 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
x=mydb['userActivity'].aggregate([{"$match":{"user_id": 278893}},{"$project":{"activity":{"book_id":1,"activity":{"date_modified":1}}}},{"$unwind":"$activity"},{"$project":{"activity.book_id":1,"date_modified":"$activity.activity.date_modified"}},{"$sort":{"date_modified":-1}},{"$limit" : 1} ]) | |
interaction_data=list(x) | |
book_id=interaction_data[0]['activity']['book_id'] | |
books=mycol.find({"ISBN":book_id}) | |
book=list(books) | |
book13isbn = book[0][''] | |
le.inverse_transform([88]) | |
x=mydb['bookDataset'].aggregate([{"$match":{"isbn13": {"$in":book_list}}},{"$project":{"isbn_13":{"book_id":1,"activity":{"date_modified":1}}}},{"$unwind":"$activity"},{"$project":{"activity.book_id":1,"date_modified":"$activity.activity.date_modified"}},{"$sort":{"date_modified":-1}},{"$limit" : 1} ]) |
This file contains 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
embedding_size = 5 | |
# creating book embedding path | |
book_input = Input(shape=[1], name="Book-Input") | |
book_embedding = Embedding(n_books2, embedding_size, name="Book-Embedding")(book_input) | |
# book_vec = Flatten(name="Flatten-Books")(book_embedding) | |
book_vec = Reshape([embedding_size])(book_embedding) | |
# creating user embedding path |
This file contains 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 React, {Component} from 'react'; | |
import {Platform, StyleSheet, View, | |
FlatList, ScrollView, Image, ActivityIndicator, | |
TouchableOpacity, Alert, Button } from 'react-native'; | |
import { Container, Item, Input, Icon, Text, Card, | |
Thumbnail, CardItem, Body, Left, Right, Textarea, Form, Header, Content, Footer } from 'native-base'; | |
import StarRating from 'react-native-star-rating'; |