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
{ | |
"openapi": "3.0.3", | |
"info": { | |
"title": "Airline Tools API", | |
"version": "1.0.0" | |
}, | |
"paths": { | |
"/reservations": { | |
"post": { | |
"operationId": "book_reservation", |
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 os, sys, logging | |
# 1) Disable Python’s stdout buffering | |
os.environ["PYTHONUNBUFFERED"] = "1" | |
try: | |
# Python 3.7+ lets you force line-buffering on stdout | |
sys.stdout.reconfigure(line_buffering=True) | |
except Exception: | |
pass |
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 time | |
from datetime import datetime, timedelta | |
class Node: | |
def __init__(self, key, value, expiry): | |
self.key = key | |
self.value = value | |
self.expiry = expiry | |
self.next = None |
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
print("Hello World") |
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
Downloading https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz to ../data/cifar-10-python.tar.gz | |
0.0% | |
0.0% | |
0.0% | |
0.0% | |
0.0% | |
0.0% | |
0.0% | |
0.0% |
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
The future depends on what we do in the present | |
It’s easy to stand in the crowd but it takes courage to stand alone | |
Our greatest ability as humans is not to change the world, but to change ourselves | |
Service without humility is selfishness and egotism | |
It does not require money to live neat, clean, and dignified | |
My life is my message | |
Speak only if it improves upon the silence | |
Satisfaction lies in the effort, not in the attainment | |
Relationships are based on four principles: respect, understanding, acceptance and appreciation | |
Hate the sin, love the sinner |
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
#!/bin/env python3 | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import subprocess | |
HOST = '0.0.0.0' | |
PORT = 9000 | |
HTML = ''' | |
<html> |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
NewerOlder