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
app.post('/login', function(req, res) { | |
console.log(res); | |
passport.authenticate('local', function(err, user, params) { | |
if (req.xhr) { | |
//thanks @jkevinburton | |
if (err) { return res.json({ error: err.message }); } | |
// e.g. in auth.js: | |
// if (!user.emailVerified) { return done(null, false, { message: 'Email is not verified. Please check your email for the link.' }); } | |
if (!user && params) { return res.json({error : params.error}); } |
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
package com.example.read_write; | |
import android.Manifest; | |
import android.content.pm.PackageManager; | |
import android.os.Environment; | |
import android.support.v4.content.ContextCompat; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.EditText; |
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
router.get("/semester", async (req, res) => { | |
var data = req.query; | |
console.log(data.str + " " + data.end); | |
var str = data.str; | |
var end = data.end; | |
var query = [ | |
{ | |
$match: { | |
Year: { | |
$gte: "$$str", |
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 mongoose = require("mongoose"); | |
const userSchema = mongoose.Schema({ | |
Year: { type: Number, required: true }, | |
Semester: { type: String, required: true }, | |
School: { type: String, required: true }, | |
Department: { type: String, required: true }, | |
Major: { type: String, required: true }, | |
Students: { type: Number, require: true } | |
}); |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 19 10:55:10 2020 | |
@author: Mir Sahib | |
""" | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt |
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
BrokenProcessPool Traceback (most recent call last) | |
<ipython-input-34-460d6f5fb3a7> in <module> | |
1 if __name__ == '__main__': | |
2 with concurrent.futures.ProcessPoolExecutor() as executor: | |
----> 3 for result in zip(fileName,executor.map(run_svm, fileName)): | |
4 print(result) | |
C:\ProgramData\Anaconda3\lib\concurrent\futures\process.py in _chain_from_iterable_of_lists(iterable) | |
481 careful not to keep references to yielded objects. | |
482 """ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 React, { useState } from "react"; | |
import Header from "./components/header"; | |
import SearchBar from "./components/SearchBar"; | |
import Home from "./components/Home"; | |
import Footer from "./components/footer"; | |
function App() { | |
const [cityName, setCityName] = useState(""); | |
//function to track change in the search bar |