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 urllib import request | |
from bs4 import BeautifulSoup as bs | |
import re | |
import nltk | |
import heapq | |
url = 'https://en.wikipedia.org/wiki/facebook' | |
allParagraphContent = "" | |
htmlDoc = request.urlopen(url) |
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 csv, sqlite3 | |
import pandas as pd | |
import numpy as np | |
con = sqlite3.connect("exercise_database.db") | |
query_one = pd.read_sql_query("SELECT iso, AVG(score) AS averageScore FROM reviews GROUP BY iso", con) | |
print(query_one) |
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 csv, sqlite3 | |
import pandas as pd | |
import numpy as np | |
# 1) Finding any missing data and removing row associated with data | |
def missing_data(data_path): | |
df = data_path.dropna(how='any').shape |
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
'use strict'; | |
const Restify = require('restify'); | |
const server = Restify.createServer({ | |
name: "NewsBot" | |
}); | |
const request = require('request'); | |
const PORT = process.env.PORT || 3000; | |
server.use(Restify.bodyParser()); | |
server.use(Restify.jsonp()); |
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
// | |
// main.cpp | |
// | |
// Created by Jonathan Nwosu on 05/04/2017. | |
// Copyright © 2017 Jonathan Nwosu. All rights reserved. | |
// | |
//searching through a linkedlist using recursion... (simply traversing) | |
#include <iostream> |
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
<?php | |
$api_link = file_get_contents("https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=5&q=glossybox&key=AIzaSyD2dr0l03UuGH9gU2z9OD8X5kLY5kizAwE"); | |
$encode = json_decode($api_link); | |
for ($i=0; $i < 5; $i++) { | |
$results = $encode->items[$i]->id->videoId; |
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
%Question 1.. | |
clear all | |
close all | |
clc | |
A = [20 -10 0 0 0 0 0 0 | |
-10 20 -10 0 0 0 0 0 | |
0 -10 15 -5 0 0 0 0 | |
0 0 -5 10 -5 0 0 0 |
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
<!doctype html> | |
<html lang="en-US"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>My product (sentview)</title> | |
<link rel="stylesheet" type="text/css" href="sentiment_analysis.css"> | |
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Oldenburg"> | |
<link href='http://fonts.googleapis.com/css?family=Squada+One' rel='stylesheet' type='text/css'> | |
<link href='http://fonts.googleapis.com/css?family=Oswald:700' rel='stylesheet' type='text/css'> | |
<link href='http://fonts.googleapis.com/css?family=Oswald:500' rel='stylesheet' type='text/css'> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps."> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | |
<title>Monzo Dashboard</title> |
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
// | |
// main.cpp | |
// interview_questions | |
// | |
// Created by Jonathan Nwosu on 25/03/2017. | |
// Copyright © 2017 Jonathan Nwosu. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <iostream> |
NewerOlder