Note that here streaming is occuring over TCP thereby would be supported by Firefox, and not Chrome.
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 requests | |
from bs4 import BeautifulSoup | |
import re | |
import json | |
with requests.session() as s: | |
login_payload = { | |
"email": "xxx", | |
"password": "yyy" | |
} |
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 sys | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver import ActionChains | |
import re | |
import codecs |
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
[ | |
{ | |
"entry_point": "office_door2", | |
"entry_time": "2019-09-19 10:35:05", | |
"body_id": 1, | |
"label": "Carlos", | |
"exit_point": "office_door1", | |
"exit_time": "2019-09-19 10:35:33", | |
"recognition_time": 35 | |
}, |
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
var lastFmApiKey = "xxyy"; | |
var settings = { | |
"async": true, | |
"crossDomain": true, | |
"url": "https://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=rounakdatta&api_key=" + lastFmApiKey + "&format=json", | |
"method": "POST", | |
"headers": { | |
"Accept": "*/*", | |
"Cache-Control": "no-cache", |
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
#include <SPIFFS.h> | |
/* | |
* | |
* Copyright (C) 2017 CS.NOL https://github.com/csnol/1CHIP-Programmers | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, | |
* and You have to keep below webserver code |
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
window.onbeforeunload = function () { | |
return "Leave this page ?"; | |
} |
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
{ | |
"labels": [{ | |
"label": "Rosangela", | |
"x": -200, | |
"y": 200 | |
}, | |
{ | |
"label": "Fabiana", | |
"x": -100, | |
"y": 300 |
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
GrLivArea | SalePrice | |
---|---|---|
1710 | 208500 | |
1262 | 181500 | |
1786 | 223500 | |
1717 | 140000 | |
2198 | 250000 | |
1362 | 143000 | |
1694 | 307000 | |
2090 | 200000 | |
1774 | 129900 |
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
from pyspark.sql import SparkSession | |
# helper function to add | |
def addThem(x, y): | |
return x + y | |
# spark session object construction - remember there's only one session that's why getOrCreate | |
spark = SparkSession.builder.appName("wordCount").getOrCreate() | |
# read the file contents |