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
# coding: utf-8 | |
from datetime import datetime | |
from time import sleep | |
from psycopg2 import connect, OperationalError | |
connected = False | |
while not connected: | |
try: |
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 requests | |
url='http://127.0.0.1:8090/blue' | |
hj=requests.post(url,{ | |
"device":"TemperatureSensor", | |
"value":"20", | |
"timestamp":"25/01/2017 10:10:05" | |
}) |
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 sys | |
import os | |
from PyQt5.Qt import * # noqa | |
def main(): | |
class Foo(QMainWindow): | |
def __init__(self): |
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 sys | |
import os | |
from PyQt5.Qt import * # noqa | |
def main(): | |
class Foo(QMainWindow): | |
def __init__(self): |
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 sys | |
import os | |
from pathlib import Path | |
from PyQt5.Qt import * # noqa | |
class FileSystemModel(QFileSystemModel): |
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 sys | |
import os | |
from pathlib import Path | |
from PyQt5.Qt import * # noqa | |
class FileSystemModel(QFileSystemModel): |
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 sys | |
import os | |
import time | |
from pathlib import Path | |
from PyQt5.Qt import * # noqa | |
class FileSystemModel(QFileSystemModel): |
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 sys | |
import os | |
import time | |
from pathlib import Path | |
from PyQt5.Qt import * # noqa | |
class FileSystemModel(QFileSystemModel): |
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 sys | |
import os | |
import time | |
from pathlib import Path | |
from PyQt5.Qt import * # noqa | |
class FileSystemModel(QFileSystemModel): |
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 time | |
import concurrent.futures | |
import psutil | |
def test(x): | |
print('entering', x) | |
time.sleep(1) | |
print('exiting', x) |