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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<h1 align="center">Redirecting in <span id="countdown">10</span> seconds</h1> | |
<script type="text/javascript"> | |
// Total seconds to wait | |
var seconds = 10; |
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 socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect(('localhost', 1080)) | |
message = '' | |
while True: | |
msg = s.recv(1) | |
if len(msg) <= 0: | |
break |
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 socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind(('localhost', 1080)) | |
s.listen() | |
message = "Hello World" | |
message = bytes(message, "utf-8") | |
while 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
qApp.setStyle(QStyleFactory.create("Fusion")) | |
darkPalette = QPalette() | |
darkColor = QColor(45, 45, 45) | |
disabledColor = QColor(127, 127, 127) | |
darkPalette.setColor(QPalette.Window, darkColor) | |
darkPalette.setColor(QPalette.WindowText, Qt.white) | |
darkPalette.setColor(QPalette.Base, QColor(40, 40, 40)) | |
darkPalette.setColor(QPalette.AlternateBase, darkColor) |
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
#!python3.7 | |
import random | |
import time | |
import PySide2 | |
from PySide2 import QtCore, QtWidgets | |
from PySide2.QtCore import Slot, Signal, QObject, QThreadPool, QRunnable | |
class MyEmitter(QObject): |
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 cx_Oracle | |
def main(): | |
# Variables | |
username: str = "HR" | |
password: str = "<YOUR_PASSWORD>" | |
host: str = "localhost" | |
service: str = "XE" | |
# Connection establishing |
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 cx_Oracle | |
def main(): | |
# Variables | |
username: str = "HR" | |
password: str = "<YOUR_PASSWORD>" | |
host: str = "localhost" | |
service: str = "XE" | |
# Connection establishing |
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 cx_Oracle | |
def main(): | |
# Variables | |
username: str = "HR" | |
password: str = "<YOUR_PASSWORD>" | |
host: str = "localhost" | |
service: str = "XE" | |
# Connection establishing |
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 cx_Oracle | |
def main(): | |
# Variables | |
username: str = "HR" | |
password: str = "<YOUR_PASSWORD>" | |
host: str = "localhost" | |
service: str = "XE" | |
# Connection establishing |
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
{ | |
"students": [ | |
{ | |
"id": 101, | |
"name": "Rizwan Hasan", | |
"age": 21, | |
"department": "CSE", | |
"sex": "Male", | |
"paid": true, | |
"cgpa": 2.13 |